astina / payment-bundle
Symfony2 bundle integrating various e-payment providers
Installs: 6 740
Dependents: 0
Suggesters: 0
Security: 0
Stars: 3
Watchers: 20
Forks: 0
Type:symfony-bundle
Requires
- ramsey/uuid: ^4.1
- symfony/symfony: ^2.8||^3.4
This package is auto-updated.
Last update: 2022-07-04 16:26:49 UTC
README
Datatrans Provider
Service configuration:
<service id="astina_payment.provider" class="Astina\PaymentBundle\Provider\Datatrans\Provider">
<argument>%astina_payment.datatrans.merchantid%</argument>
<argument>%astina_payment.datatrans.serviceurl%</argument>
<argument>%astina_payment.datatrans.authorizexmlurl%</argument>
<argument>%astina_payment.datatrans.capturexmlurl%</argument>
<argument>%astina_payment.datatrans.sign%</argument>
<argument>%astina_payment.datatrans.sign2%</argument>
<argument type="service" id="logger" />
</service>
Paypal Provider
The Paypal provider is using the NVP API. See the documentation for details.
The following API methods are implemented:
- SetExpressCheckout in
createPaymentUrl()
- GetExpressCheckoutDetails in
createTransactionFromRequest()
- DoExpressCheckoutPayment in
captureTransaction()
Service configuration:
<service id="astina_payment.provider" class="Astina\PaymentBundle\Provider\Paypal\Provider">
<argument>%astina_payment.paypal.api_username%</argument>
<argument>%astina_payment.paypal.api_password%</argument>
<argument>%astina_payment.paypal.api_signature%</argument>
<argument>%astina_payment.paypal.api_endpoint%</argument>
<argument>%astina_payment.paypal.paypal_url%</argument>
<argument>%astina_payment.paypal.subject%</argument>
<argument type="service" id="logger" />
<argument>%astina_payment.paypal.version%</argument> <!-- optional, defaults to 53.0 -->
</service>
Saferpay Provider
The Saferpay provider is using the HTTPS API (V4.1.6).
Documenation: https://astina.atlassian.net/wiki/download/attachments/3932162/Saferpay+Payment+Page+V4.1.6+EN.pdf
Service Configuration:
<service id="astina_payment.provider" class="Astina\PaymentBundle\Provider\Saferpay\Provider">
<argument>%astina_payment.saferpay.endpoint%</argument>
<argument>%astina_payment.saferpay.accountId%</argument>
<argument>%astina_payment.saferpay.vtconfig%</argument> <!-- optional -->
<argument type="service" id="logger" />
</service>
Computop Provider
Only authorization is implemented for now.
<service id="astina_payment.provider" class="Astina\Bundle\PaymentBundle\Provider\Computop\Provider">
<argument>[merchant id]</argument>
<argument>[password]</argument>
<argument>[hmac key]</argument>
<argument>[testing mode true|false]</argument>
</service>
Updating to version 2.0
This release introduces a $testmode variable for HttpsSaferpayEndpoint.php. If the testmode is set to true, the payment information will be sent to the testing API 'https://test.saferpay.com/hosting/'.
To adapt the testmode variable in your project, follow these steps:
-
In your composer.json, make sure that version 2.0.x is used: "astina/payment-bundle": "~2.0"
-
In your services.xml where you define the SaferpayEndpoint service, add the testmode as argument:
<service id="astina_payment.saferpay.endpoint" class="%astina_payment.saferpay.endpoint.class%"> <argument type="service" id="logger" /> <argument>%astina_payment.saferpay.accountId%</argument> <argument>%astina_payment.saferpay.password%</argument> <argument>%astina_payment.saferpay.testmode%</argument> </service>
-
In your parameters.yml, set the environment to either true (for testing) or false (production).
-
In your parameters.yml.dist, don't forget to set the default value astina_payment.saferpay.testmode: true.