OPay PrestaShop Plugin


Throughout this page, you will learn how to install, configure, and activate the OPay payment plugin in your PrestaShop store. After following closely the steps explained below, your PrestaShop shop will be able to start accepting payments through OPay's payment channels.

Store Preparation


The OPay payment integration with PrestaShop is simple and we've provided easy steps to help you get up and running!

Warning

Warning

Make sure you have an active OPay account or you can create an account.

Warning

Warning

You need to log in to Dashboard.


  1. Get Merchant ID, Secret Key, Public Key for sandbox/production environment

    As shown in the figure below:Log in OPay account, switch to sandbox environment (Test Mode):

  2. OPay dashboard

  3. Click on Account Details:
  4. OPay dashboard account details

  5. Merchant ID is shown as below:
  6. OPay Merchant ID

  7. Please click API Keys & Web Hook to access Secret Key and Public Key:
  8. OPay API

  9. To get Merchant ID, Secret Key and Public Key for production environment, please switch to Live Mode and repeat the above three steps:
  10. PrestaShop Store settings

  11. Well done! Now you're ready to setup your PrestaShop store to start accepting payments through OPay.

Store Setup


This section illustrates the steps you need to follow to configure your PrestaShop store.


  1. Login to your PrestaShop store admin panel.

  2. After entering the Editing Page , click "Localization" to select the basic information such as Country and Currency :
  3. PrestaShop dashboard

  4. After selecting the basic information, click the "Save" button:
  5. PrestaShop add currency

Note

Congratulations!

Your PrestaShop store is now set up!

Warning

Warning

The store country and monetary unit set up in the PrestaShop must be consistent with the Merchant ID belongs country.

Installation


After completing the configuration, please follow the steps below to install OPay's PrestaShop plugin.


  1. Download the plugin.

  2. Click on the modules-> module manager to enter the installation page:
  3. prestashop insatlling-page

  4. Click the "Upload a module" button to upload the OPay payment plugin zip compression package (after the upload, the installation is completed):
  5. prestashop upload

  6. The figure indicates the completion of the installation:
  7. prestashop complete_installation

Note

Congratulations!

You've successfully installed the OPay PrestaShop plugin!

Configuration


  1. Click the Configure button of the installed pop-up box to enter the extended configuration page:
  2. prestashop plugin module_install

    You also could click on Payment-> Payment methods, you can see the OPay, click on the Configure button


    prestashop plugin payment_methods

  3. Close theproduction environment. Payment Method corresponds to three payment methods: Bank Card, Reference Code and Shahry
  4. prestashop plugin bank_card

    Warning

    Warning

    Supported payment methods:

    • Bank Card
    • OPay Reference Code
    • Shahry
    • ValU
    • Mobile Wallet
    • Bank Installment


    field description example
    Payment Gateway Status Control whether OPay can be used as a checkout payment status Enabled/Disabled
    Allow Debug ? Enable in case you are still in development phase. Disable debug when turning into production mode. Enabled/Disabled
    Merchant ID Your merchant ID you should have received it after creating an account. Set to your test merchant ID for testing, meanwhile, change for live merchant ID to start production mode. 256612345678901
    Public Key Your Sandbox Public key you should have received it after creating an account. Set to your test public key for testing, meanwhile, change for live public key to start production mode. Public Key
    Secret Key Your Sandbox Secret key you should have received it after creating an account. Set to your test secret key for testing, meanwhile, change for live secret key to start production mode. Secret Key
    Order Expire Time Payment expiration in minutes. 30
    Payment Method The name to be displayed for your customers for this payment method. OPay Payments (Bank Card)

  5. Click the "Save" button after completion
  6. PrestaShop plugin Save

    Note

    Congratulations!

    The OPay payment component installation is fully configured!

What's Next?

User Profile 12 messages

James Jones
Application Developer
Recent Notifications
Another purpose persuade Due in 2 Days
+28%
Would be to people Due in 2 Days
+50%
-27%
The best product Due in 2 Days
+8%