Download the PHP package hochstrasserio/wirecard-bundle without Composer
On this page you can find all versions of the php package hochstrasserio/wirecard-bundle. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download hochstrasserio/wirecard-bundle
More information about hochstrasserio/wirecard-bundle
Files in hochstrasserio/wirecard-bundle
Package wirecard-bundle
Short Description Bundle which integrates the hochstrasser/wirecard library
License MIT
Informations about the package wirecard-bundle
wirecard-bundle
Install
Install the package with Composer:
composer require 'hochstrasserio/wirecard-bundle:dev-master'
Add the bundle to your AppKernel:
Usage
Bundle Reference Configuration
Retrieving the Wirecard Context
Using the WirecardController to handle confirm requests
This bundle includes an implementation of a controller to handle requests sent to the confirmUrl
parameter supplied to payment requests.
The confirmUrl
parameter sets a URL which is updated with a request from Wirecard with payment information and state.
Register the controller in your routing configuration to enable this feature:
Then pass the URL to the InitPaymentRequest
:
The controller then checks the responseFingerprint. When the fingerprint is valid, it triggers the Hochstrasser\WirecardBundle\Event\ConfirmPaymentEvent
in the app's event dispatcher.
Handle this event to implement your business logic, e.g. queuing an order confirmation email.
For example:
The ConfirmPaymentEvent
contains also constants for the Wirecard payment response states:
SUCCESS
: Payment was successful, e.g. send order confirmationPENDING
: Payment is still processingCANCEL
: Payment was cancelled by the customerFAILURE
: Payment failure, i.e. notify the user that the order could not be processed
All versions of wirecard-bundle with dependencies
symfony/symfony Version ^2.7.0 || ^3.0.0
hochstrasserio/wirecard Version ^0.2.0 || ^1.0.0