sfPaymentSIPSPlugin - 0.5.0
ATOS SIPS Payment module integration into Symfony
You are currently browsing
the website for symfony 1
This plugin allows you to integrate SIPS payment into your symfony application. SIPS binaries are not shipped with this plugin
sfPaymentSIPS is a symfony plugin that provides Atos SIPS payment module for Symfony applications. Additional checkings and return code handling are done to provide a better comfort with API calls.
|Christophe BUGUET||lead||ten.egrofecruos.sresu <<ta>> teugubc|
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.
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.
Install the plugin
symfony plugin-install http://plugins.symfony-project.com/sfPaymentSIPSPlugin
Clear your cache
Edit the app.yml and add these parameters with your information :
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
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
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');
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.