Getting Started

Welcome to Smart2Pay Online Documentation which will help you integrate GlobalPay, Smart2PayTM’s latest payment platform.

Once you are registered you will be able to configure your websites and operate the transactions at https://dashboardtest.smart2pay.com/.

You can start integration with GlobalPay payment platform using our REST API, Smart2Pay SDK-PHP, or one of our plugins for e-commerce web shops. For more details about Smart2Pay SDK-PHP and Smart2Pay Plugins click on the images below.

The GlobalPay REST API is based on a request/response mechanism that uses HTTP protocol. This means that the API is using different HTTP methods to perform different actions (such as: GET, POST, PUT, DELETE), resource-oriented URLs and HTTP response codes to indicate API errors. Also, authentication to the API occurs via HTTP Basic Auth (HTTP Basic access authentication).

To initiate a transaction, you need to create a payment object. The parameters of the payment need to be sent in the message body as a JSON object.

For all requests Basic Authentication is used with a secret API Key. Please make sure the API keys are kept secret and regenerate at once if security has been compromised! All requests must be initiated using HTTPS protocol!

We are working with two platforms Test and Live. The integration and testing phase will first be done on the test server. As soon as the development and testing phase are successfully completed you will need to follow the same steps for integration on the live platform. You will also have to whitelist GlobalPay’s IPs for Test and Live Environment. For more information please visit our section GlobalPay’s Environments and IPs.

GlobalPay REST API exposes the following resources: payments (one-off or recurrent), refunds, refund types, preapprovals (used for recurrent billing), payment methods, customers, billing addresses, shipping addresses. Here you will find how you can control each of these resources.

Playground transactions and test transactions do not involve real money. Their purpose is to get you accustomed on how to process live transactions.

Integration flavors

The GlobalPay REST API offers 3 integration flavors allowing you to choose, depending on your business case, the payment flow that works better for you and your customers. See below the flow of each flavor!

Compare Integration Flavors
Features Minimal Configuration Controlling the payment method Frictionless Flow
Control the payment method on your checkout page No Yes Yes
Full control of the payment flow No Yes Yes
Frictionless integration No No Yes
Least amount of customer information on your checkout page Yes No No
Accept refunds Yes Yes Yes
Accept recurrent payments Yes Yes Yes
Development effort Low Medium High
Payment page customization Yes Yes No
IP detection fallback Yes Yes Yes
Mobile friendly responsive UI Yes Yes Depends

integration_flavours_v001

integration flavours Sun Mercury Venus

Playground

Try our playground below to see how our API works and, based on your business requirements or your personal preference, choose the payment flow that provides the best experience for your site and your customers!

Minimal configuration


In centimes (eg. 1000 = 10.00)

 

Controlling the payment method


In centimes (eg. 1000 = 10.00)

 

Frictionless flow


In centimes (eg. 1000 = 10.00)