Magento 2 Orange Money Web Payment

 

Table of Content

  1. Extension Installation
  2. Payment Gateway Configuration
  3. Configuration
  4. Orange Money Web Payment in Frontend
  5. Orange Money Web Payment Details in Backend

 

  1. Extension Installation
    • For Magento Marketplace Customers
      • Find the Composer name and version of the extension in the extension’s composer.json file.
      • Login to your SSH and run:
      • composer require meetanshi/magento-2-orange-money-web-payment --ignore-platform-reqs
    • Enter your authentication keys. Your public key is your username; your private key is your password.
    • Wait for Composer to finish updating your project dependencies and make sure there aren’t any errors.
    • To verify that the extension installed properly, run the command:
      • php bin/magento module:status Meetanshi_OrangeWeb --ignore-platform-reqs
          • By default, the extension is probably disabled.
          • Enable the extension and clear static view files:
      • php bin/magento module:enable Meetanshi_OrangeWeb --clear-static-content
      • php bin/magento setup:upgrade
      • For Magento version 2.0.x to 2.1.x - php bin/magento setup:static-content:deploy
      • For Magento version 2.2.x & above - php bin/magento setup:static-content:deploy –f
      • php bin/magento cache:flush

 

  • For Meetanshi Customers
  • Extract the zip folder and upload our extension to the root of your Magento 2 directory via FTP.
  • Login to your SSH and run below commands step by step:
  • php bin/magento setup:upgrade
  • For Magento version 2.0.x to 2.1.x - php bin/magento setup:static-content:deploy
  • For Magento version 2.2.x & above - php bin/magento setup:static-content:deploy –f
  • php bin/magento cache:flush

 

  1. Payment Gateway Configuration
    Make sure to follow the payment gateway configuration steps mentioned at https://developer.orange.com/apis/om-webpay to create a new app, get the app approved, get the merchant key and authorization header.

 

  1. Configuration

To Configure the extension, login to Magento 2, move to Sales à Payment Methods à Orange Money Web Payment - Meetanshi where you can find various settings to enable the extension.

  • Enabled: Set “YES” to enable the payment method.
  • Title: Set the title for the payment method to be displayed in the frontend.
  • Show Orange Money Logo: Set YES to show Orange Money logo along with the payment method in the frontend.
  • Sandbox Mode: Select YES to enable the sandbox mode.
  • Merchant Key: Enter the merchant key provided by Orange Money while registration.
  • Authorization Header: Enter the authorization header provided by Orange Money while registration.
  • Token URL: Token URL is set by default on extension installation, you can change it from here.
  • Gateway URL: Gateway URL is set by default on extension installation, you can change it from here.
  • Transaction Status URL: Transaction status URL is set by default on extension installation, you can change it from here.
  • Payment from Applicable Countries: Select countries to allow using this payment method.
  • Debug: Set YES to enable debug.
  • Additional Information: Add additional information to show along with the payment method on the checkout page.
  • Sort Order: Enter the Sort Order of the payment method display in the frontend.

  1. Orange Money Web Payment in Frontend
    Once the payment method is configured, Orange Money web payment method is shown on the frontend while checking out the products. Just select the payment method, click “Continue to Payment” to get redirected to the payment page and complete the payment.

  • Completing the Payment
    Once the customer gets redirected to the payment gateway, he can see the order number and order amount. He enters the mobile number and calls on #150*4*4# to get the authorization code and proceed to pay.

 

  • Payment Confirmation

Once the payment is confirmed, the payment gateway shows payment confirmation message.

  • Orange Money Web Payment Details in “My Account” section
    Once the order is placed, the Orange Money payment details are shown in the Account dashboard, in “My Orders” tab. The Payment details include the status and transaction ID along with the payment method name.

  1. Orange Money Web Payment Details in Backend

Apart from the customers, admin can also see the payment details for the orders in the backend. Go to Sales à Orders, select the order to view, and you can see Orange Money Web payment details along with the details like payment method name, status and transaction ID.