Releases for sf 1.1
| Version |
License |
API |
Released |
|
0.5.0beta
|
MIT license |
0.5.0beta
|
12/08/2008 |
Releases for sf 1.0
| Version |
License |
API |
Released |
|
0.5.0beta
|
MIT license |
0.5.0beta
|
12/08/2008 |
Copyright (c) 2008 Christophe Buguet
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Changelog for release 0.5.0 - 12/08/2008
Not available
Other releases
Release 0.5.0 - 12/08/2008
Not available
Installation for sf 1.1
php symfony plugin:install sfPaymentSIPSPlugin --release=0.5.0
Installation for sf 1.0
php symfony plugin-install http://plugins.symfony-project.org/sfPaymentSIPSPlugin
PEAR
Download the PEAR package
Repository
Go to the repository: http://svn.symfony-project.com/plugins/sfPaymentSIPSPlugin
sfPaymentSIPS plugin
The sfPaymentSIPS is a symfony plugin that provides SIPS payment module for Symfony applications.
Additional checkings and return code handling are done to provide a better comfort with API calls.
Installation
Usage
Edit the app.yml and add these parameters with your information :
default currency
default language
your merchant ID
path to the request/response binaries
all:
sips_payment:
currency: EUR
country: fr
merchant_id: 011223344551111
bin:
request: c:/cyberplus/payment/bin/request.exe
response: c:/cyberplus/payment/bin/response.exe
Symfony specific
The plugin provides the ability to redirect to your own actions once the payment return has been
checked.
In your app.yml, simply add the module/action for both return cases (good or error) :
all:
sips_payment:
action_ok: payment/index
action_nok: payment/error
- Transferring information to the SIPS payment
Once you're ready to transfer information to the payment, set a redirect to sfPaymentSIPS/request
in your module and provide three parameters through sfUser object :
$this->getUser()->setParameter('amount', '14.00', 'sips_payment');
$this->getUser()->setParameter('currency', 'USD', 'sips_payment');
$this->getUser()->setParameter('order_id', '4', 'sips_payment');
$this->forward('sfPaymentSIPS', 'request');
- Handling SIPS payment return
sfPaymentSIPS/response handles the bank return code and transfers to the module/Action you have specified.
In your custom action, it is possible to get the instance of the sfPaymentSIPS class containing the detailed
bank information, with ability to get a verbose message as specified in the original documentation.
$sipsPayment = $this->getUser()->getParameter('payment', null, 'sips_payment');
Please refer to the SIPS documentation provided by Atos.
Known limitations
- Only compliant with version 6 of the SIPS module
- Does not handle the subscription system
- Does not handle the payment in N times (Transaction management)
- Allow to set more SIPS variables through YAML file