Payzone Payment Gateway
Getting Started
This PHP integration pack will allow you to implement the payzone payment gateway into your site, using the preferred method for integration.
- Upload the files to the server via FTP
- In the assets/includes/payzone_gateway.php file, inside the __construct() function update the set statements with your merchant details
- Merchant ID - this can be found in the MMS under Account Admin -> Gateway Account Admin
- Merchant Password - this can be reset in the MMS under Account Admin -> Gateway Account Admin
- Pre Shared Key - this can be found in the MMS under Account Admin -> Account Settings
- Secret Key - This is a unique string for use by the site, you can create any random string
- Hash method - this can be found in the MMS under Account Admin -> Account Settings
- Click on one of the Submit options below, depending on whether you want to submit with dummy data, or manually enter test details
- Once you have successfully tested you can start integrating with your system, recording the transaction into your transaction log, and getting / setting the configuration values using your sites database
Example payment flow
The example payment flows below will allow you to submit a transaction end to end using the current configuration, there are 2 options:
'Without Data' - which will simulate a 'new' customer or a customer with no records stored
'With Data' - which will simulate a 'returning' customer who already have some details stored on your server, the details used in this example are from the test cards pack.
Module Configuration
Configuration
| Merchant ID | STAYCA-8100013 |
| Merchant Password | StaycayScot456 |
| PreSharedKey | XNonN0CCWiRULrv9b2puG11 |
| SecretKey | |
| Debug Mode | false |
| iFrame loading (Hosted) | true |
| Show payzone logo (Payment/Results) | true |
| Show Customer Details (Hosted) | true |
| Order Order Details (Results) | true |
Payment Settings
| Integration Type | Hosted Payment Form |
| Transaction Type | SALE |
| Result Method | POST |
| Hash Method | SHA1 |
| Base currency | GBP |
| Currency Symbol | £ |
URLS
| Homepage | https://staycationscotlandcampers.com/wp-content/themes/yootheme/Staycation/PHP/index.php |
| Cart Page | https://staycationscotlandcampers.com/wp-content/themes/yootheme/Staycation/PHP/cart.php |
| Payment Page | https://staycationscotlandcampers.com/wp-content/themes/yootheme/Staycation/PHP/payment.php |
| Results Page | https://staycationscotlandcampers.com/wp-content/themes/yootheme/Staycation/PHP/results.php |
| Payment form action | https://mms.tponlinepayments2.com/Pages/PublicPages/PaymentForm.aspx |
| Response Form Handler | https://mms.payzoneonlinepayments.com/Pages/PublicPages/PaymentFormResultHandler.ashx |