Download the PHP package eseperio/ceca-omnipay without Composer
On this page you can find all versions of the php package eseperio/ceca-omnipay. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download eseperio/ceca-omnipay
More information about eseperio/ceca-omnipay
Files in eseperio/ceca-omnipay
Package ceca-omnipay
Short Description CECA payment gateway implementation with omnipay
License MIT
Informations about the package ceca-omnipay
Omnipay: Ceca + Bizum
Ceca NON-OFFICIAL driver for the Omnipay PHP payment processing library
Omnipay is a framework agnostic, multi-gateway payment processing library for PHP 5.3+. This package implements RedSys (formerly Sermepa) support for Omnipay.
Installation
This is available via Composer/Packagist.
Run the following command to install it:
Basic Usage
In order to process a payment, you will need to create a Gateway
with your credentials, and then create a PurchaseRequest
and send it to the gateway.
Creating gateway
Sending purchase request
This will redirect user to the payment gateway if the request is successful. If not, an exception will be thrown.
Then, if user process payment, the gateway will redirect user to the URL_OK or URL_NOK you provided.
IMPORTANT: URL_OK and URL_NOK are not valid for order confirmation. You must use the notification URL to confirm the order.
Handling notification
In your application, you must create a route to handle the notification. This route will be called by the payment gateway to confirm the order. This library implements AcceptNotification to handle this
Simulating a notification from the gateway
In order to improve testing of local development, you can simulate a notification from the gateway by calling the send
method of the notification request.