Magento 1.9.X Community Edition – Openpay Payment Plugin / Extension

Integration Guide

Objectives and Target Audience

This guide describes how to install and configure Openpay Payment Gateway Extension to Magento 1.9.X Community Edition. You should have an existing Magento installed.


What is Magento Payment Extension?

Magento is an eCommerce platform, built on open source technology, which provides online merchants with not only a flexible shopping cart system, but also control over the look and feel, content and the functionality of their online store. Magento has been fully integrated with Openpay’s online payment solutions.

Installing and configuring the Hosted Payment Solution module of Openpay provide a simple, secure and convenient option to connect with Openpay’s online payment processing platform via Magento.

Signing up for Openpay merchant account

In order to start taking payments through Openpay, you need to sign up and get approval for an Openpay merchant account. Once your application is approved, you can configure Openpay Hosted Payment Solution module and start taking payments.

Openpay provides a test account and users for training and testing purpose.

Installing and Configuring Openpay Payment Extension


Before installing the Openpay module, make sure that your web server meets the following criteria:

  • Magento should be pre-installed on your web server. The Openpay module is compatible with Magento version 1.9.x. The installation procedure described here has been tested on Magento version 1.9.x
  • Supported Web Servers: Apache / nginx
  • SSL: A valid security certificate is required to work over a secure channel (HTTPS) from the Magento Admin Panel or while submitting the form data from the store‐front. Self‐signed SSL certificates are not supported
  • MySQL database with sample data
  • At least 5.6 or the later version of PHP, MySQL and web browser Curl (version 7.20.0 ‐ 7.44.0)

For further details on PHP compatibility, MySQL, supported Web servers and other requirements, please refer to the Magento website:

Running Magento on a Windows server

Magento can be run on a Windows server.

Installation Steps

To install the extension, download and extract the zip file.

Copy and paste all the files within the Root Folder

Log in to the Magento admin panel and clear your browser cache and Session:

Navigate to System > Cache Management > Flush Magento Cache

Admin Setup

Log in to your Magento admin account. If cron is not configured properly, you will get the error message (see the screenshot below). You need to setup the Magento cron properly. For cron set up instructions click here.

Navigate to Stores > Configuration > (on left panel) Sales > Payment Methods > Openpay Payment Method

  • Title: Openpay – Buy now, pay smarter.
  • Enabled: Yes
  • Jam Auth Token: Please enter Jam Auth Token provided by Openpay
    Use the Test Jam Token below for testing:
  • Test Mode: If the website is live then set it to ‘No’. If the website is under production or under development, then set it to ‘Yes’.
  • Payment from Applicable Countries: Specific Countries
  • Payment from Specific Countries: Select Australia.
  • Click ‘Get Min – Max Value’ to run the min max amount.
    (Order amount should be greater than minimum and less than maximum to enable Openpay payment method on the frontend of your site. This value is displayed on the on Jam Token provided.)
  • Automatically Create Invoice: Set ‘Yes’.
  • Automatically Create Openpay Pending Orders: Set ‘Yes’. This will automatically cancel Openpay pending orders.
  • Frequency: Set to ‘After one hour’.
  • Debug: ‘Yes’.
  • Click ‘Save Config’ to save the settings.

Magento 1 Payment Plugin

Important Note: Please setup Magento cron, otherwise auto-cancel for incomplete orders will not work. It will check the orders with status ‘Pending Openpay Approval’. If the order has Openpay active plan then it will change the order status to the processing otherwise it will cancel the orders.

How does Openpay work

If the customer chooses to checkout with items that are worth less than the total amount provided in the admin total, then Openpay will not show on the “Payment Method”.

If the amount is greater than the Minimum Order Value and Less than the Maximum Order Value which is set on admin configuration, it will allow the users to pay using Openpay Payment Method.

Click on the “Continue” tab, and the Order Review Option will be shown.

Click on the ‘Place Order’ and it will be redirected to the Openpay Payment Gateway. This will perform a HTTP POST request to Openpay.

Openpay Plan Creation

If the customer is already registered with Openpay, the following screen will be displayed:

If customer does not have an Openpay account, they will need to create one.

If the customer continues to login, then the following page will be displayed

We do not email verification code on training mode please use 123456 for verification.

We do not send SMS on training mode please use 111111 for verification.

If the customer click on Return to Shop, the browser will redirect to the cart page.

If the customer continues to login, then the following page will be displayed

If the customer clicks on ‘Submit Plan‘, a Plan Successfully Submitted page will be shown along with Today’s payment and the customer will be redirected to your site on Thank you page with order completion message.

Demo Site

Shows the placement of all the Openpay widgets and assets. You can test an Openpay plan creation on this site.


This section provides the credentials for test user and test merchant account on Openpay Training Environment to create and check your Openpay plan.

Test User

Username: testmagento@xx.yy
Password: Testing123

Test Merchant / Retailers Account
Username: adminmag
Password: Test123

Magento 1 Order Status

Pending Openpay Approval
If somehow a payment was declined or not completed after order placement, the order will be ‘Pending Openpay Approval’. Do not dispatch Openpay order on this status.

After successful payment order status will be ‘Processing’.

If the order is shipped or dispatch by the admin then orders status change to complete. If there is any partial refund it also changes the order to ‘Completed’.

If the order is cancelled by an admin user, or if ‘Automatically Cancel Openpay Pending Orders’ is set ‘Yes’ in Openpay payment settings, it will cancel the order based on the frequency of which it is configured. Openpay recommends that this frequency is set to ‘After one hour’.

If the order is fully refunded by an admin user, then orders status change to ‘Close’.

Below is the detailed order status to share with your staff who look after orders, dispatch and refunds.


Refund can be done easily from the Admin panel of Magento. Open the Openpay order which requires refund (Example: order id# 145000021) and click Invoice.

For this order, we have plan id ‘3000000042178’. Right now, we have not yet created any credit memo or refund. That is why the refund column on the Openpay dashboard is left blank.

Secondly, we have to create a credit memo for that order. Click on ‘Credit Memo’ button from the Magento admin order section and for that click on the Invoices from the left panel and then click on the Order details.

Now click on the Credit Memo from the right upper corner

After the partial refund, we can see that the ‘refunded on’ column is updated. Also note that the worth column has changed. Previously it was $80 and after refunding $50, worth column updated with $30

On admin, the order status will show ‘Complete’ for Partial Refund.


Navigate to System > Configuration > (on left hand panel) Sales > Payment Methods > Openpay > Enable > No

Extension Update Notification

  • On the Openpay website, if there is an update available for the Openpay payment extension, then the client will get the notification of Update with the download link. They can download that extension from the Openpay website and install it.


Q: For a successful purchase, what is the status in Magento?

A: After successful payment order status will be “Processing” by default.

Q: When does a processing order status change to complete?

A: If the order is shipped or dispatch by the admin then the order status change to complete. Also if there is any partial refund the order status change to complete.

Version Control Table

# Date Version Description
1 September 2017 1.1 Created payment plugin
2 July 2019 5.2 Updated payment plugin to API 5.2 
3 September 2019 5.5 Updated payment plugin to API 5.5
4 May 2020 5.5.1 Openpay Logo change
5 June 2020 5.5.2 Updated the security patches