Example payment via Gestpay Payment Page in PHP
This repository is an example project to show how to implement a payment via Gestpay payment page.
The payment process is explained in Gestpay Docs - Getting Started - see in particular Using Banca Sella Payment Page.
What's in this repository
||is the main entry point for the application. tweaking this page you will be able to change the amount, or the currency, and so on.|
||when the payment is completed, Gestpay will redirect to this file to show to the user the payment status.
||A simple page to check your php version and your server software.|
How to start the example
- open the file
$shopLogin = 'GESPAYXXXXX';
2. start this webapp on a server with a public IP. 3. Connect to your test merchant back-office and login 4. In Configuration > IP address, insert the public IP of your server 5. In the same page click on Response Address and insert: - URL for positive response:
- URL for negative response:
- URL Server to Server:
6. Pay with one of the cards present in the Notification page.
7. Once you have payed, you'll be redirected by Gestpay on
response.php to see the outcome of the transaction.
Questions, Issues, etc.
For any questions, open an issue on Github.