Download the PHP package mlocati/payway without Composer
On this page you can find all versions of the php package mlocati/payway. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download mlocati/payway
More information about mlocati/payway
Files in mlocati/payway
Package payway
Short Description Unofficial BCC PayWay (IGFS Buy Now) client library for PHP
License MIT
Informations about the package payway
MLocati's unofficial BCC PayWay (IGFS Buy Now) client library for PHP
This unofficial PHP library can help you accepting payments using the BCC (Banca di Credito Cooperativo) PayWay, which is a service powered by the IGFS (Internet Gateway Financial Systems) Buy Now service.
It supports any PHP version, ranging from PHP 5.5 to the most recent PHP versions (8.2 as for now).
Sample usage to receive a payment
Initialization
If you want to accept a payment for 123.45 € from customers, you first need to initialize the process:
Next, you have to send the initialization request to your bank's web server:
At this point, you you have a succesfull initialization response.
You have to store the result of $response->getPaymentID()
for later usage (for example, in a database table).
Customer interaction
Now you can redirect your customers to the external payment page:
At the resulting page, the customers will fulfill a form with their credit card data.
Verify the ransaction result
Once the customers completed the payment (or canceled it), they will return to your website, at the page specified in the notify URL.
In the notify URL page, you then have to check the result of the payment transaction.
You may want to use something like this:
Server2Server communication (callback URL)
If in the initialization process you configured the callback URL, you can check the received parameters by using some code like this:
And you can inspect what $request
contains to verify the transaction result (same process as above).
All versions of payway with dependencies
ext-dom Version *