Skip to content
OpenCart · User manual

BayanPay

Version 1.0.1 Product page
Chapter 5

Payments and orders

This chapter shows what your customers see when they pay with BayanPay and how the order is confirmed in your store.

At checkout

  1. The customer chooses BayanPay as the payment method.
  2. The payment step shows a Currency list with Saudi Riyal (SAR), the order Total converted to riyal with the exchange rate of your store, and the Confirm Order button.
  3. The customer presses Confirm Order and is sent to the BayanPay payment page: the staging page or the live page, depending on Mode.
  4. The customer completes the payment on BayanPay.
  5. BayanPay sends the customer back to your store.

Customers who use the Arabic language of your store see these texts in Arabic.

The currency and the amount

BayanPay is paid in Saudi riyal. The total is calculated from the order total with the riyal exchange rate set in System > Localisation > Currencies. If your store's default currency is not the riyal, keep that exchange rate up to date, because it decides the amount the customer pays.

If the riyal does not exist in your store, the payment step shows Sorry we don't have that currency in our system, please contact Store Support Team and the Confirm Order button is disabled.

When the customer returns

The answer from BayanPay is encrypted with your merchant key. The extension decrypts it and checks that the order number in the answer is the order the customer is paying.

ResultWhat happens
Payment successfulThe order receives the Order Status from the settings, which confirms it in OpenCart, and the customer sees the order success page.
Payment failedThe customer returns to the checkout and sees the error message sent by BayanPay. The order is not confirmed, and the customer can try again.
The order number does not matchThe customer returns to the checkout with the message Sorry the order code received doesn't match with the order code requested. Please try again.
No answer receivedThe customer returns to the checkout with the message Sorry we don't recive any data in the response. Please try again.

Managing payments

Captures, cancellations and returns of money are not handled from OpenCart by this extension. Use the merchant tools provided by BayanPay for them, and then update the order status in OpenCart.

Still need help?

Open a support ticket from your account and our team will look at your store with you.