Get 15% off Mageplaza extensions & subscriptions! Use code HIMAY at checkout.

How to integrate SecurePay with Magento 2?

Vinh Jacker | 10-31-2019

The Most Popular Extension Builder for Magento 2

With a big catalog of 224+ extensions for your online store

You are wondering which to choose among various payment providers for your Magento stores? Your biggest concerns and priorities are safety and simple integration process for your e-commerce websites. You might want to listen about SecurePay - a famous payment gateway from Australia. In this blog, we are going to bring you the highlight information of this payment method as well as its integration tool for M2 store. Eventually we want to help you make the best decision on building and improving your checkout process.

Main Contents

What do you know about SecurePay?


Being an online payment expert originated from Australia, SecurePay offers e-commerce payment solutions for online organizations and businesses in all scopes and sizes. It offers a large number of online payment methods, including SecurePay, a highly trusted and long-life used method that can commonly get organizations selling on the web in five business days.

Known as a pioneer in the online payments industry in the Australian market, SecurePay has extensive experience working with Australian organizations. For over 15 years of operation, it has helped over 40,000 online organizations jump on track with their web based business needs, particularly the small and medium-size organizations.

Why SecurePay is worthy to invest?

More payments choices than ever

One of the most beneficial features of this payment gateway is that it allows online shoppers to have more payment options, for example, Visa, MasterCard, American Express, Diners Club International, and PayPal. It also enables them to make an online order straight away, which can enable organizations to convert over more deals. In other words, SecurePay offers a straightforward online application process without any visits to banks required.

Simple integration process

Simple integration process

In term of business side, SecurePay is prefered since it offers a purely simple integrating process as it coordinates with many major internet shopping carts. Clients are likewise given access to real Australian banks for simple administration of payment. Moreover, SecurePay ensures secure online payments that guarantee to secure any transaction and client information from fraud or unauthorized access occurs.

Easily manage payment account

With SecurePay, users can access their card information handily at any time. It also supports a very detailed reports of all occurred transaction of certain customers. Hence, store owners is assisted with better transaction management and formulate effective marketing strategies.

How to integrate SecurePay with Magento 2 checkout page?

Account registration

Firstly, we will guide you to create a SecurePay account:

  • Please access this link
  • Click to Sign up button
  • Fill in the required information as below:

SecurePay Account registration

If your registration is completed, SecurePay website will show a thank you popup which reminds you to check register email for confirmation.

integrate SecurePay with Magento 2 checkout page

Open your registered mail, check the latest news from SecurePay, click Activate Now:

integrate SecurePay with Magento 2 checkout page 2

On the Securepay account page, you need to get the information including Merchant ID, Publishable Key, Private Key to fill in Configuration (will be guided below):

integrate SecurePay with Magento 2

Click Manage > Paypal Settings to get Merchant Account ID and Transaction Password:

integrate SecurePay with Magento 2

  • SecurePay has a sandbox environment accessible to the public. Please see the public testing account details below.
    • Test Merchant Login URL:
    • Merchant ID: ABC
    • Username: test
    • Password: abc1234 !!
    • Test integration details
    • Merchant ID: ABC0001
    • Test Transaction Password: abc123

Configuration SecurePay module

Please see this user guide for more details of configuration.

Outstanding functions of Magento 2 SecurePay module

Payment via XML API message

If you need a workable method for transmitting transaction details to SecurePay for processing, the Secure Pay XML API is the one for you. With this module, one operation will be contained in each XML message which is sent to SecurePay. This covers the program building process within your website or application to integrate the XML API, and it can run well on any platform as well as any programming language.

For processing, and XML message will be sent to an HTTPS URL at SecurePay through the POST method. One the process is done, a message will be sent back to your server also via the POST Method. It would normally take a few seconds for a message to be processed.

SecurePay Payment via XML API message

Payment directly on store’s site

With the Direct Post feature, the transaction information will be transmitted directly from the customer’s card information to the SecurePay by allowing them to post their card information on a form that is displayed on your website.

This integration would make customers feel like they are using the Magento Default because of a similar interface. Unlike an API which transmitted the data directly from customers’ computer to Secure Pay and transactions will be completed there. With Direct Post, customers will be redirected back to the checkout page of your site to complete their orders.

SecurePay Payment directly on store’s site

Payment via Paypal gateway

With this Secure Pay Paypal, the transaction gateway will be Paypal while Secure Pay will still be the place where the customers’ data will be stored.

This is a great combination as it offers customers, especially for whom are keen on paying using Paypal to make payment easily and conveniently.

Payment via Paypal gateway

Accept all commonly-used payment cards

This is one of the most noticeable functions of Secure Pay. All types of debit and credit cards which are popular globally will be accepted, including:

  • Visa
  • Mastercard
  • American Express
  • Discover
  • Diners Club
  • JCB
  • Bankcard

The diversity in card types will surely support both store owners and customers to process the payment smoothly and conveniently. This is because, according to research, the customers’ interest’ payment card will strongly affect the conversion rate. In other words, if the customers can pay using their own cart, the sales, as well as the conversion rate, will increase significantly.

Accept all commonly-used payment cards

Ensure high security for payment

Payment Card Industry Data Security Standard (or PCI DSS) is required for all stores that accept credit and debit card payments to ensure the security for customer’s data. Once you installed the Secure Pay module, your site will automatically comply with this standard.

In addition, the Secure Pay extension also has the ISO27001 certificate, which is a global information security management standard. This means that you can continue to grow your business and make customers trust you without worrying about these hassles of compliances.


Security for Magento 2

Protect your store from cyber threats with Mageplaza's top-notch security services

Check it out!

Full Features of Magento 2 SecurePay extension

For store admins


  • Provide two environments to apply SecurePay: Sandbox (testing), and Production (real payment)
  • Enable entering Merchant ID and Account ID
  • Allow setting transaction password
  • Publishable Key which is collected from SecurePay registration will be entered
  • Enter Secret Key which is using for SecurePay Paypal Integration
  • Check the connection with SecurePay by using Test Credential button

General Configuration

  • Turn on/ off the module
  • Allow setting the payment’s title
  • Choose payment action to collect payment
  • The ability to set new order status after paying via SecurePayOffer
  • Choose the types of card applicable to SecurePay: American Express, Visa, Mastercard, JCB, Diners Club, or Bankcard
  • Choose countries that are able to use SecurePay
  • Enable setting the minimum and maximum requirement for order total
  • Store information in log files on the webserver of Magento with debug mode
  • Set the SecurePay payment position on the Checkout page

View Order

  • Store SecurePay transaction information at My Orders section in customer’s account
  • SecurePay transaction information can be viewed from the Order Detail section at the backend.
  • Display order comments and transaction history

Wrap Up

It comes to the end of our article. Mageplaza hope that you can have a better understanding of SecurePay gateway. Especially, with SecurePay module, your stores’ customers are assisted to make payment easily via different cards including Visa, MasterCard, American Express, Diners Club, JCB.


SecurePay for Magento 2

Add various popular e-commerce gateways including Visa, MasterCard, American Express, Diners Club, and JCB.

Check it out!


Hello, I'm the Chief Technology Officer of Mageplaza, and I am thrilled to share my story with you. My deep love and passion for technology have fueled my journey as a professional coder and an ultra-marathon runner. Over the past decade, I have accumulated extensive experience and honed my expertise in PHP development.

Related Post

Website Support & Maintenance Services

mageplaza services

Make sure your store is not only in good shape but also thriving with a professional team yet at an affordable price.