Skip to content

Commit

Permalink
added some lines in read-me for payment-api system
Browse files Browse the repository at this point in the history
added example to setup db in config
  • Loading branch information
kokspflanze committed May 13, 2015
1 parent 61d85a8 commit b3634c3
Show file tree
Hide file tree
Showing 2 changed files with 75 additions and 2 deletions.
7 changes: 7 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,13 @@ To improve the performance
*/5 * * * * php /[install-path]/public/index.php user-codes-cleanup
```

## Donation

- Paymentwall default link => `/payment-wall-response.html`
- Superreward default link => `/super-reward-response.html`

Please check the config with the key `payment-api` to setup the secret-keys, ban-time and more.

## Problems or improvements

Please write an issue or create a pull-request @ GitHub
70 changes: 68 additions & 2 deletions config/module.config.php
Original file line number Diff line number Diff line change
Expand Up @@ -161,11 +161,15 @@
],
],
],

/**
* DB Connection-Setup
*/
'doctrine' => [
'connection' => [
'orm_default' => [
'driverClass' => 'Doctrine\DBAL\Driver\PDOMySql\Driver',
// mssql db @ windows => 'GameBackend\DBAL\Driver\PDOSqlsrv\Driver'
// mssql db @ linux => 'GameBackend\DBAL\Driver\PDODblib\Driver',
'driverClass' =>'Doctrine\DBAL\Driver\PDOMySql\Driver',
'params' => [
'host' => 'localhost',
'port' => '3306',
Expand All @@ -177,6 +181,42 @@
'enum' => 'string'
],
],
'orm_sro_account' => [
// mssql db @ windows => 'GameBackend\DBAL\Driver\PDOSqlsrv\Driver'
// mssql db @ linux => 'GameBackend\DBAL\Driver\PDODblib\Driver',
'driverClass' =>'GameBackend\DBAL\Driver\PDODblib\Driver',
'params' => [
'host' => 'local',
'port' => '1443',
'user' => 'foo',
'password' => 'bar',
'dbname' => 'ACCOUNT',
],
],
'orm_sro_shard' => [
// mssql db @ windows => 'GameBackend\DBAL\Driver\PDOSqlsrv\Driver'
// mssql db @ linux => 'GameBackend\DBAL\Driver\PDODblib\Driver',
'driverClass' =>'GameBackend\DBAL\Driver\PDODblib\Driver',
'params' => [
'host' => 'local',
'port' => '1443',
'user' => 'foo',
'password' => 'bar',
'dbname' => 'SHARD',
],
],
'orm_sro_log' => [
// mssql db @ windows => 'GameBackend\DBAL\Driver\PDOSqlsrv\Driver'
// mssql db @ linux => 'GameBackend\DBAL\Driver\PDODblib\Driver',
'driverClass' =>'GameBackend\DBAL\Driver\PDODblib\Driver',
'params' => [
'host' => 'local',
'port' => '1443',
'user' => 'foo',
'password' => 'bar',
'dbname' => 'LOG',
],
],
],
'entitymanager' => [
'orm_default' => [
Expand Down Expand Up @@ -414,6 +454,32 @@
],
],
'payment-api' => [
'payment-wall' => [
/**
* WhiteList-Ips for PaymentWall
*/
'ip-white-list' => [
'174.36.92.186',
'174.36.96.66',
'174.36.92.187',
'174.36.92.192',
'174.37.14.28'
],
/**
* SecretKey
*/
'secret-key' => '',
/**
* ApiVersion, supported version atm 1,2,3
*/
'version' => 3
],
'super-reward' => [
/**
* SecretKey
*/
'secret-key' => ''
],
'ban-time' => '946681200',
],
'zfc-ticket-system' => [
Expand Down

0 comments on commit b3634c3

Please sign in to comment.