Troubleshooting
The most frequent problems with BayanPay, what causes them and how to fix them.
BayanPay does not appear in the checkout
- BayanPay Status must be Enable, and you must have pressed Apply changes.
- If you selected geo zones, the customer's address must be inside one of them.
- If you set a Total, the order total must reach it.
The Confirm Order button is disabled
The message Sorry we don't have that currency in our system, please contact Store Support Team means that the Saudi riyal is missing from your store.
- Open System > Localisation > Currencies and add a currency with the code
SAR. - Set its exchange rate against your default currency, or leave the automatic currency update of OpenCart to do it.
- Reload the checkout.
The customer gets an error on the BayanPay page
The request sent to BayanPay is encrypted with your merchant key and identified with your merchant ID. If BayanPay cannot read it:
- check that Merchant ID and Merchant Key are copied exactly, without spaces before or after;
- check that both belong to the environment selected in Mode: staging credentials with Staging, live credentials with Production;
- ask BayanPay to confirm that your merchant account is active for that environment.
The payment fails and the customer returns to the checkout
The customer sees the message sent by BayanPay, for example a card declined. The order is not confirmed and the customer can try again or choose another payment method. If every payment fails with the same message, contact BayanPay with the message and the order number.
The customer paid but the order is not confirmed
The order is confirmed only when the customer returns to your store from BayanPay. Check:
- whether the customer closed the browser before returning: find the order with the Missing Orders filter in Sales > Orders and confirm it by hand after checking the payment in your BayanPay account;
- that the customer returned in the same browser session; the message Sorry the order code received doesn't match with the order code requested appears when the answer belongs to another order than the one in the session;
- that Order Status is set in the settings.
A warning about the PHP OpenSSL extension
If the settings open with the window PHP OpenSSL extension required, the PHP OpenSSL extension is not enabled on your server. BayanPay needs it on every OpenCart version to encrypt the payment data, and customers cannot pay with BayanPay until it is enabled. Ask your hosting provider to enable OpenSSL for your PHP version.
Getting help
Open a support ticket with your OpenCart version, the Mode you use, the order number and the exact message shown to the customer.
Still need help?
Open a support ticket from your account and our team will look at your store with you.