Skip to content
OpenCart · User manual

BayanPay

Version 1.0.1 Product page
Chapter 1

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

RequirementDetail
OpenCart2.3.x and 3.x
PHPThe OpenSSL extension
CurrencySaudi riyal, with the code SAR, set up in your store
BayanPayA BayanPay merchant account, with its merchant ID and merchant key
LicenceA 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

Quick start

  1. Ask BayanPay for your merchant ID and merchant key, for the staging environment and for production.
  2. Check that the currency Saudi riyal with the code SAR exists in System > Localisation > Currencies.
  3. Install the package for your OpenCart version. See Installation.
  4. Open the extension and validate your licence.
  5. Enter Merchant ID and Merchant Key, set Mode to Staging, choose an Order Status and set BayanPay Status to Enable.
  6. Save, then place a test order and check that it reaches the order status you chose.
  7. 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.