Download the PHP package grimmlink/alipay-bundle without Composer
On this page you can find all versions of the php package grimmlink/alipay-bundle. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download grimmlink/alipay-bundle
More information about grimmlink/alipay-bundle
Files in grimmlink/alipay-bundle
Package alipay-bundle
Short Description GrimmlinkAlipayBundle
License MIT
Homepage https://github.com/grimmlink/AlipayBundle
Informations about the package alipay-bundle
GrimmlinkAlipayBundle
A Symfony Bundle to help you create & submit payment using Alipay's Cross-border Website Payment system (http://global.alipay.com/product/websitepayment.htm)
Requirements
- cURL
- openssl
Installation
Installation with composer :
Add this bundle to your app/AppKernel.php :
Configuration
Your personnal account informations must be set in your config.yml
Routing
Usage
In your Payment controller :
Do not forget to create the controller action for your return URL, and do not include payment treatment inside, this is done in the Notification event listener.
Then, create your own Alipay Notification service listener, like this :
Create your Listener class and put your payment logic inside The AlipayResponseEvent contains
- data : the Query parameters sent by Alipay
- response : "true" if the notification has been validated
- signed : boolean - is the Alipay response's signature valid
All versions of alipay-bundle with dependencies
psr/log Version ~1.0
lib-curl Version >=7.10.0
lib-openssl Version >=0.9.6
symfony/framework-bundle Version ~3.0
symfony/form Version ~3.0
symfony/options-resolver Version ~3.0