Overview
BayanPay adds the BayanPay hosted payment page to your OpenCart checkout. Customers pay in Saudi riyal on BayanPay and return to your store, where the order is confirmed.
What the extension does
BayanPay adds one payment method, shown to your customers as BayanPay. When a customer chooses it, the payment step shows the order total in Saudi riyal (SAR) and a Confirm Order button. The button sends the customer to the BayanPay payment page, where the payment details are entered. Card details are never typed in your OpenCart checkout.
When the payment is finished, BayanPay sends the customer back to your store. The extension decrypts the answer with your merchant key, checks that it belongs to the order in progress, and:
- if the payment succeeded, confirms the order with the order status you chose and shows the order success page;
- if the payment failed, returns the customer to the checkout and shows the message sent by BayanPay.
The data sent to BayanPay includes the order number, the amount, and the customer's billing and shipping name, address, e-mail and telephone.
Requirements
| Requirement | Detail |
|---|---|
| OpenCart | 2.3.x and 3.x |
| PHP | The OpenSSL extension |
| Currency | Saudi riyal, with the code SAR, set up in your store |
| BayanPay | A BayanPay merchant account, with its merchant ID and merchant key |
| Licence | A valid DevmanExtensions licence for this product |
Your merchant agreement, credentials and transaction fees are arranged directly with BayanPay. They are not part of the extension licence.
The checkout texts of the payment method are included in English and Arabic. The administration is available in English and Arabic.
How this manual is organised
- Installation covers OpenCart 2.3 and 3.x, updating and uninstalling.
- Licence activation explains the licence screen you see the first time you open the extension.
- Settings explains every field of the settings screen.
- Payments and orders shows what your customers see and how orders are confirmed.
- Troubleshooting lists the usual problems and their fix.
Quick start
- Ask BayanPay for your merchant ID and merchant key, for the staging environment and for production.
- Check that the currency Saudi riyal with the code
SARexists in System > Localisation > Currencies. - Install the package for your OpenCart version. See Installation.
- Open the extension and validate your licence.
- Enter Merchant ID and Merchant Key, set Mode to Staging, choose an Order Status and set BayanPay Status to Enable.
- Save, then place a test order and check that it reaches the order status you chose.
- When the test works, enter your production credentials and set Mode to Production.
Still need help?
Open a support ticket from your account and our team will look at your store with you.