From 4df3a441ff5a81c0620318ac5afb34e0ce5948ef Mon Sep 17 00:00:00 2001 From: KoKsPfLaNzE Date: Sun, 29 Nov 2015 02:39:20 +0100 Subject: [PATCH] added some parts for xsolla --- .travis.yml | 2 -- README.md | 3 ++- composer.json | 1 + config/module.config.php | 1 + src/PServerCMS/Service/PaymentNotify.php | 3 +++ 5 files changed, 7 insertions(+), 3 deletions(-) diff --git a/.travis.yml b/.travis.yml index c011644..606d36a 100644 --- a/.travis.yml +++ b/.travis.yml @@ -5,13 +5,11 @@ php: - 5.6 - 7 - hhvm - - hhvm-nightly matrix: fast_finish: true allow_failures: - php: hhvm - - php: hhvm-nightly before_script: - composer self-update diff --git a/README.md b/README.md index ffdf5bb..5cad5ad 100644 --- a/README.md +++ b/README.md @@ -63,7 +63,7 @@ You can find some screenshots @ [screenshot-directory](https://github.com/kokspf - SecretQuestionSystem (possible to enable it in the config, and set the question in the admin panel) - SecretLogin (you can define different roles, which has to confirm there mail before they can login) - lost Password -- Donate (PaymentWall and Superreward, in default added) +- Donate ([PaymentWall](https://www.paymentwall.com), [Superrewards](http://superrewards.com/) and [xsolla](http://xsolla.com/), in default added) - TicketSystem (with bb-code) change TicketCategories in the Adminpanel - AccountPanel (to change the web/ingame password) - CharacterPanel (to show current status of a character, set main character[alias for ticket-system]) @@ -92,6 +92,7 @@ To improve the performance - Paymentwall default link => `/payment-api/payment-wall-response.html` - Superreward default link => `/payment-api/super-reward-response.html` +- xsolla default link => `/payment-api/xsolla.html` Please check the config with the key `payment-api` to setup the secret-keys, ban-time and more. diff --git a/composer.json b/composer.json index 6388bba..ec9e848 100644 --- a/composer.json +++ b/composer.json @@ -25,6 +25,7 @@ "ext-intl" : "*", "ext-gd" : "*", "ext-curl" : "*", + "ext-json" : "*", "twig/twig": "1.*", "zendframework/zendframework": "~2.5", "doctrine/doctrine-orm-module": "0.*", diff --git a/config/module.config.php b/config/module.config.php index a73d5b2..7cf1422 100644 --- a/config/module.config.php +++ b/config/module.config.php @@ -127,6 +127,7 @@ 'small_user_service' => 'PServerCMS\Service\User', 'payment_api_log_service' => 'PServerCMS\Service\PaymentNotify', 'payment_api_ip_service' => 'PServerCMS\Service\Ip', + 'payment_api_validation' => 'PServerCMS\Service\PaymentValidation', 'zfcticketsystem_ticketsystem_service' => 'PServerCMS\Service\TicketSystem', ], 'aliases' => [ diff --git a/src/PServerCMS/Service/PaymentNotify.php b/src/PServerCMS/Service/PaymentNotify.php index a6c7f7c..b6a2ceb 100644 --- a/src/PServerCMS/Service/PaymentNotify.php +++ b/src/PServerCMS/Service/PaymentNotify.php @@ -128,6 +128,9 @@ protected function mapPaymentProvider2DonateType(Request $request) case Request::PROVIDER_SUPER_REWARD: $result = DonateLog::TYPE_SUPER_REWARD; break; + case Request::PROVIDER_XSOLLA: + $result = DonateLog::TYPE_XSOLLA; + break; } return $result;