Click to Pay
Overview
Introduction
Click to Pay is a payment method which allows you to process payments with the use of American Express, Maestro, Mastercard, and Visa in most countries of the world and in different currencies. Using this method ensures that the payment card data is securely stored in the Click to Pay service and this data can be accessed via various desktop and mobile devices, including Android and iOS ones. Click to Pay supports processing payments in the USA and Canada, the countries of the EEA and most countries in Asia, Africa, and South America. The ecommpay payment platform supports purchases and refunds using the Click to Pay method. It provides wide availability via various desktop and mobile devices, including Android and iOS ones.
This article provides information about working with the Click to Pay method: general insights are presented in the Overview section, while information about the actions required to process payments and perform other actions is presented in the sections that follow.
General information
Payment method type | card payments |
---|---|
Payment instruments | payments cards |
Countries and regions | most countries in the world |
Payment currencies | most currencies in the world |
Currency conversion | + |
One-time purchases | + |
Credential-on-file purchases | – |
Full refunds | + |
Partial refunds | + |
Payouts | – |
Chargebacks | + |
Notes |
|
Onboarding and access fee | refer to your ecommpay account manager |
Interaction diagram
Payment processing by using the Click to Pay method involves the merchant's web service, the Payment Page interface, the ecommpay payment platform, and technical facilities of the Click to Pay service.
Operations support
Processing Click to Pay payments in the payment platform involves the following interfaces: purchases can be processed by using Payment Page, refunds—by using Gate and Dashboard. Depending on the specifics of the card processing networks and issuers, various amount and time limitations can also apply.
Processing scenarios
Processing scenarios
To perform a purchase by using the Click to Pay method, you need to register the customer and their payment cards in the Click to Pay service and then execute the required steps, while to issue a refund, you need to receive a request from the customer and notify the customer about the result of the refund via the web service. In addition, the customers can be registered in the service not only during checkout but also beforehand via global card networks and issuers (learn more below).
In general, scenarios of purchases and refunds can be represented as follows.
Specific scenarios for performing a purchase with the Click to Pay method can vary depending on what customer, with what device and what browser and with the use of which payment card intends to make a payment. There are four main user scenarios:
- Returning user checkout (or basic purchase)—the payment is made by the customer already registered in the service. The customer utilises a previously used device, browser, and card and is authenticated via their email.
- Returning user checkout, unrecognised device (or purchase with a new device)—the payment is made by the customer already registered in the service. The customer utilises a device or a browser that has not been used to make a payment before.
- Returning user checkout with a new card (or purchase with a new card)—the payment is made by the customer already registered in the service. The customer utilises a card that has not been used to make a payment before.
- First time user enrolment (or purchase by a new customer)—the payment is made by the new customer following their registration in the Click to Pay service.
One of the special aspects of processing Click to Pay purchases is the use of specialised pages that are shown in the payment form and the data for which is received directly from the Digital Card Facilitators (DCF). Digital card facilitators are global card networks that participate in the Click to Pay service and provide customers with access to digital cards.
Returning user checkout
Below is a user scenario of the basic purchase made via Payment Page.
Returning user checkout, unrecognised device
Below is a user scenario of the purchase made with a new device via Payment Page. Keep in mind that if the initial request contains the customer's phone number and email, the step with the customer's authentication in the service is skipped.
Returning user checkout with a new card
Below is a user scenario of the purchase made with a new card via Payment Page. Keep in mind that if the initial request contains the customer's phone number and email, the corresponding fields in the payment form are shown prefilled.
First time user enrolment
Below is a user scenario of the purchase made via Payment Page by the new customer. Keep in mind that if the initial request contains the customer's phone number and email, the corresponding fields in the payment form are shown prefilled.
Provisional enrolment
First time customers can be enrolled in the Click to Pay service not only during checkout (as in scenarios described above), but also beforehand:
- Via global card networks.
- An American Express cardholder can access their Click to Pay profile with the email that was used for creating their user account on the American Express website or in the Amex mobile application.
- A Mastercard cardholder can enrol on the Mastercard website.
- A Visa cardholder can enrol on the Visa website.
- Via payment card issuers: an issuer can enrol customers by bulk pre-provisioning or can prompt customers to create a Click to Pay profile in their mobile banking application and on the website.
Purchases by using Payment Page
General information
To process a purchase through Payment Page by using the Click to Pay method, the merchant's web service is required to send a request with all required parameters and signature to the ecommpay URL and receive a callback with the result. The full sequence and special aspects of purchase processing are provided below.
In other user scenarios, the interaction between the customer and the Payment Page interface is the same as described above while the web service executes the same actions. In addition, if the capability of payment retries is enabled and one of the Click to Pay purchase scenarios is declined, the customer can retry the payment while using their card (standard card payments), and in case of subsequent declines, can be offered to pay with the use of other available payment methods (more information about payment retries can be found in this article).
Information about the formats of requests and callbacks used for processing payments by using the Click to Pay method via Payment Page is presented further in this section; general information about working with the Payment Page API is presented in Interaction concepts.
Request format
There are several things you need to consider when sending purchase requests by using the Click to Pay method:
- The following parameters required for any payment must be specified:
project_id
—project identifier obtained from ecommpay during integrationpayment_id
—payment identifier unique within the projectpayment_currency
—payment currency code in the ISO-4217 alpha-3 formatpayment_amount
—payment amount in the smallest currency unitcustomer_id
—customer identifier unique within the project
- The following parameters required for any payment must be specified:
project_id
,payment_id
,payment_currency
,payment_amount
,customer_id
. - Additionally, it is recommended that you specify the customer's country calling code, phone number, and email in parameters
customer_phone_country
,customer_phone
, andcustomer_email
.Specifying these parameters in the request makes it possible to authenticate the customer in the Click to Pay service seamlessly, without asking the customer to enter this information into custom fields of the payment form, even if the customer uses the device or the browser that has not been used previously.
If these parameters have not been passed in the request while the customer uses a new device or a browser, then the payment form will show the corresponding custom fields to collect required information, and the authentication of the user in the service will include the step of entering the OTP code that is sent to the provided phone number or email of the customer.
- Additionally, any other parameters available for working with Payment Page can be used (details).
- After all target parameters are specified, generate a signature (details).
Thus, a correct request for opening the payment form using the Click to Pay method must contain the project identifier, basic payment information (identifier, amount, and currency code), customer identifier and signature.
At the same time, the recommended data to be included in the request for opening Payment Page should be as follows.
Callback format
The Click to Pay method uses the standard format for callbacks to deliver purchase results. For more information, see Callbacks.
The following is the example of a callback with information about a 10.00 USD
purchase made by the cust123
customer in the 1204
project.
The following is the example of a callback with information about a declined purchase.
Useful links
The following articles can be useful when implementing purchases via Payment Page:
- Interaction concepts—about the interaction with the payment platform by using Payment Page.
- Signature generation and verification—about the procedure of generating and verifying signatures in requests and callbacks.
- Payment models and statuses—about the types, processing models, and possible statuses of supported payments and operations.
- One-time one-step purchase—about processing of one-time one-step purchases by using Payment Page.
- Information of operations performing—about error and response codes that are used in the payment platform to record information about performing of operations.
Refunds by using Gate
General information
To perform a refund through Gate by using the Click to Pay method, send a request with all required parameters and signature to the ecommpay URL and receive a callback with the result. The full sequence and special aspects of refund performing are provided below.
Information about the formats of requests and callbacks used for performing refunds by using the Click to Pay method via Gate is presented further in this section. General information about working with the Gate API is presented in Interaction concepts.
Request format
There are several things you need to consider when sending refund requests by using the Click to Pay method:
- To initiate each refund, send a separate POST request to the /v2/payment/refund endpoint.
- Each request must include the following objects and parameters:
- Object
general
—general refund information:project_id
—project identifier obtained from ecommpay during integrationpayment_id
—identifier of the payment that needs to be refundedpayment identifiersignature
—request signature generated after all required parameters are specified (details—in the Signature generation and verification)
- Object
payment
—refund information:description
—refund description or commentamount
—refund amount in the smallest currency unit (required for a partial refund)currency
—refund currency code in the ISO-4217 alpha-3 format (required for a partial refund)
- Object
customer
—customer information:ip_address
—customer IP address relevant for the initiated refund
- Object
- Additionally, any other parameters included in the specification can be used.
Thus, a correct refund request by using the Click to Pay method must contain the project and payment identifiers, description of the refund, the customer IP address, signature, and, if necessary, currency code and refund amount.
Callback format
The Click to Pay method uses the standard format for callbacks to deliver refund results. For more information, see Callbacks.
The following is the example of a callback with information about a 10.00 USD
refund made for the cust123
customer in the 424242
project.
The following is the example of a callback with information about a declined refund.
Useful links
The following articles can be useful when implementing refunds via Gate:
- Interaction concepts—about the interaction with the payment platform by using Gate.
- Signature generation and verification—about the procedure of generating and verifying signatures in requests and callbacks.
- Payment models and statuses—about the types, processing models, and possible statuses of supported payments and operations.
- Purchase refunds—about performing of refunds by using Gate.
- Information of operations performing—about error and response codes that are used in the payment platform to record information about performing of operations.
Refunds by using Dashboard
When working with Dashboard, you can perform single and mass refunds by using the Click to Pay method.
- To perform a single refund, select the target purchase, open its information tab, specify the amount of the refund, send a request and verify that the refund has been performed.
-
To perform a mass refund, prepare and upload a file with information about all target refunds, send a batch request, and verify that the refunds have been performed.
Use a CSV file structured according to the requirements presented in the Mass payments data section. The refund parameters must comply with the requirements (you do not have to generate a signature because it is specified by Dashboard).
More information Information about performing refunds by using Dashboard is presented in a separate section.
Analysis of payments results
To analyse information about payments made with the Click to Pay method and other methods, you can use:
- Dashboard interface toolkit with various lists and analytic panels.
- Reports in CSV file format, available via the Reports section (one-time and periodically).
- Data in JSON format, sent by program requests to a specified URL available by using the Data API interface.
If you have any questions, refer to the documentation (Dashboard and Using Data API) and ecommpay technical support.