Apple Pay
Overview
Introduction
Apple Pay is a payment method which allows you to process payments in different currencies by using Apple Pay services in different regions. This method supports one-time and credential-on-file purchases, refunds and payment card verification, as well as payouts.
This article provides information about working with the Apple 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 | digital wallet payments |
---|---|
Payment instruments | payments cards |
Countries and regions | the list is available at the link |
Payment currencies | all currencies supported by American Express, Maestro, Mastercard and Visa payment systems in supported regions |
Currency conversion | on the ecommpay side |
One-time purchases | + |
Credential-on-file purchases | + |
Full refunds | + |
Partial refunds | + |
Payouts | + |
Card verification | + |
Chargebacks | + |
Notes |
|
Onboarding and access fee | refer to your ecommpay key account manager, additional information available in the ecommpay shop |
Interaction diagram
Payment processing by using the Apple Pay method involves the merchant's web service, one of ecommpay interfaces, the ecommpay payment platform, and technical facilities of the Apple Pay service.
Operations support
Various platform interfaces can be used to process payments and perform operations using the Apple Pay method. Purchases can be processed by using Payment Page, Gate and Dashboard (using payment links), refunds and payouts—by using Gate and Dashboard.
Processing scenarios
To perform a purchase by using the Apple Pay method, the payment session must be initiated and the customer needs to perform the required steps, while to make 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. To process a payout, you need to notify the customer via the web service.
Scenarios for performing operations via the main interfaces of the payment platform correspond to those presented in the diagrams. Similarly, when additional features (such as payment links) are used, scenarios for performing operations also correspond to the specifics of those features.
One-time purchases by using Payment Page
General information
To process a purchase through Payment Page by using the Apple 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.
Information about the formats of requests and callbacks used for processing payments by using the Apple 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 Apple 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
. - If you need to have payment form displayed with the Apple Pay method selected, set the
force_payment_method
parameter to:apple_pay_core
—to open Payment Page with pre-selected payment method Apple Paycard
—for the ability of payment by using either a payment card or Apple Pay. In this case customer can chose the payment method on Payment Page
- 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 Apple Pay method must contain the project identifier, basic payment information (identifier, amount, and currency code), customer identifier and signature.
Callback format
The Apple Pay method uses the standard format for callbacks to deliver purchase results. For more information, see Callbacks.
The callbacks containing information about processed purchases include the token of the card in the token
parameter of the account
object, which can only be used for initiating payouts.
The following is the example of a callback with information about a 1,000.00 USD
purchase in the 580
project.
The following is the example of a callback for a purchase declined due to insufficient funds on card.
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.
One-time purchases by using Gate
General information
To process a purchase through Gate by using the Apple Pay method, the merchant's web service is required to do the following:
- Send a request for starting payment session with all the required parameters and signature to the ecommpay URL.
- Receive customer and payment session data in an intermediate callback.
- Send a purchase request with all the required parameters and signature to the ecommpay URL.
- Get the final callback with the payment result from the payment platform.
The full sequence and special aspects of purchase processing are provided below.
Information about the formats of requests and callbacks used for processing payments by using the Apple 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 for starting the payment session
There are several things you need to consider when sending requests for starting the payment session by using the Apple Pay method:
- To start each session, send a separate POST request to the /v2/session/applepay.
- Each request must include the following objects and parameters:
- Object
general
—general purchase information:project_id
—project identifier obtained from ecommpay during integrationvalidation_url
—URL for validationdomain_name
—domain name of the merchant web servicedisplay_name
—the name of the project to display, must contain no more than 64 characterssignature
—request signature generated after all required parameters are specified (details—in the Signature generation and verification) (details)
- Object
Purchase request format
There are several things you need to consider when sending purchase requests by using the Apple Pay method:
- To initiate each purchase, send a separate POST request to one of the following endpoints:
- /v2/payment/applepay/sale for one-step purchases
- /v2/payment/applepay/auth for two-step purchases
- Each request must include the following objects and parameters:
- Object
general
—general purchase information:project_id
—project identifier obtained from ecommpay during integrationpayment_id
—payment identifier unique within the projectsignature
—request signature generated after all required parameters are specified (details—in the Signature generation and verification) (details)
- Object
payment
—payment information:amount
—payment amount in the smallest currency unitcurrency
—payment currency code in the ISO-4217 alpha-3 format
- Object
customer
—customer information:id
—customer identifier unique within the projectip_address
—customer IP address relevant for the initiated payment
etoken
— information about token that represents card details received from the Apple Pay service:token
—token received from Apple Pay in JSON format after user identification, must be specified as a string. The value of this parameter can contain such information as the payment identifier on the Apple Pay side, the type of the international payment system, and various service data.
- Object
- Additionally, any other parameters included in the specification can be used.
Thus, a correct purchase request by using the Apple Pay method must contain the project identifier, basic payment information (identifier, amount, and currency code), customer identifier and IP address, the Apple Pay token, as well as signature.
Two-step purchase debiting request format
There are several things you need to consider when sending debiting requests by using the Apple Pay method:
- To initiate each debiting, send a separate POST request to the /v2/payment/applepay/capture endpoint.
- Each request must include the following objects and parameters:
- Object
general
—general purchase information:project_id
—project identifier obtained from ecommpay during integrationpayment_id
—payment identifier unique within the projectsignature
—request signature generated after all required parameters are specified (details—in the Signature generation and verification) (details)
- Object
payment
—payment information:amount
—payment amount in the smallest currency unitcurrency
—payment currency code in the ISO-4217 alpha-3 format
- Object
- The amount and currency must match the values in the authorisation request.
- Additionally, any other parameters included in the specification can be used.
Thus, a correct purchase request by using the Apple Pay method must contain the project identifier, basic payment information (identifier, amount, and currency code), as well as signature.
Two-step purchase cancellation request format
There are several things you need to consider when sending purchase cancellation requests by using the Apple Pay method:
- To initiate each cancellation, send a separate POST request to the /v2/payment/applepay/cancel endpoint.
- Each request must include the following objects and parameters:
- Object
general
—general purchase information:project_id
—project identifier obtained from ecommpay during integrationpayment_id
—payment identifier unique within the projectsignature
—request signature generated after all required parameters are specified (details—in the Signature generation and verification) (details)
- Object
- Additionally, any other parameters included in the specification can be used.
Thus, a correct purchase request by using the Apple Pay method must contain the project and payment identifiers, as well as signature.
Callback format
The Apple Pay method uses the standard format for callbacks to deliver purchase results. For more information, see Callbacks.
The callbacks containing information about processed purchases include the token of the card in the token
parameter of the account
object, which can only be used for initiating payouts.
The following is the example of a callback with information about a 1,000.00 USD
purchase made in the 580
project.
The following is the example of a callback for a purchase declined due to insufficient funds on card.
Useful links
The following articles can be useful when implementing purchases 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.
- 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.
COF purchases by using Payment Page
General information
The Apple Pay payment method provides the ability to perform COF purchases—regular on-demand payments. For more information about COF purchases, see On-demand COF purchase.
Registration of a COF purchases is also available by using Payment Page. For registration the web service must send a request containing the required parameters and signature, as well as data for registering a COF purchase in the recurring
object, to the ecommpay URL and accept a callback with the result. In the callback about registering a COF purchase, you will get its ID, which you need to use to make or cancel regular payments via Gate or Dashboard. For more information, see the section COF purchases by using Gate.
Information about the formats of requests and callbacks used for processing payments by using the Apple 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 for registering COF purchases by using the Apple 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
. - To register a COF purchase, you must specify a
recurring
object containing the registration attribute and the necessary information. To register regular payments, the request must contain information about the frequency, amount, and beginning and end time of regular payments. The full list of parameters that can be passed in therecurring
object is shown in the COF purchase registration section. - If you need to have payment form displayed with the Apple Pay method selected, set the
force_payment_method
parameter to:apple_pay_core
—to open Payment Page with pre-selected payment method Apple Paycard
—for the ability of payment by using either a payment card or Apple Pay. In this case customer can chose the payment method on Payment Page
- 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 Apple Pay method must contain the project identifier, basic payment information (identifier, amount, and currency code), customer identifier and signature.
Callback format
The Apple Pay method uses the standard format for callbacks to deliver COF purchase results. For more information, see Callbacks.
The following is the example of a callback with information about a successful COF purchase registration made by a customer in the 208
project.
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.
COF purchases by using Gate
General information
The Apple Pay payment method provides the ability to perform COF purchases—regular on-demand payments. For more information about COF purchases, see On-demand COF purchase.
Information about the formats of requests and callbacks used for processing payments by using the Apple Pay method via Gate is presented further in this section. General information about working with the Gate API is presented in Interaction concepts.
COF purchase registration
To register a COF purchase by using Gate, the merchant is required to send a request for purchase with all the required parameters (including the register
parameter of the recurring
object, set to the value true
) to the ecommpay URL and get the callback with the payment result from the payment platform. To register a regular payment the request should also contain information about the frequency, amount, start and end dates of regular payments. The COF purchase registration callback contains its identifier, which can be used to process or cancel regular payments.
For more information about purchase processing by using Gate, see One-time purchases by using Gate.
Format of requests for registration of COF purchases
There are several things you need to consider when sending requests for registering COF purchases by using the Apple Pay method:
- To register each COF purchase, send a separate POST request to one of the following endpoints: /v2/payment/applepay/sale or /v2/payment/applepay/auth.
- Each request must include the following objects and parameters:
- Object
general
—general purchase information:project_id
—project identifier obtained from ecommpay during integrationpayment_id
—payment identifier unique within the projectsignature
—request signature generated after all required parameters are specified (details—in the Signature generation and verification) (details)
- Object
payment
—payment information:amount
—payment amount in the smallest currency unitcurrency
—payment currency code in the ISO-4217 alpha-3 format
- Object
customer
—customer information:id
—customer identifier unique within the projectip_address
—customer IP address relevant for the initiated payment
- Object
recurring
—COF purchase information:register
—payment registration as a COF purchasetype
—type of the COF purchase:R
(for Regular payment),C
(for OneClick payment), orU
(for Autopayment), for more information, refer to Overviewscheduled_payment_id
—assigned to the payment within which scheduled debits are performed; it must differ from the identifier of the payment made to register a COF purchase and must be unique within the projectstart_date
—the start date of regular payments, in theDD-MM-YYYY
format (must be at least one day later than the date of registration)amount
—amount of debitingperiod
—regular payment performing periodinterval
— regular payment performing intervaltime
—regular payment performing time in thehh:mm:ss (UTC0)
format
- Object
- Additionally, any other parameters included in the specification can be used.
Thus, a correct COF purchase registration request by using the Apple Pay method must contain the project identifier, basic payment information (identifier, amount, and currency code), customer identifier and IP address, the registration parameter and the conditions for regular payments, as well as signature.
Format of requests for COF purchase processing
After the payment is registered, the funds are debited according to the specified regular payment conditions. You initiate COF purchase by sending a recurring
request to the payment platform.
There are several things you must consider when processing COF purchases performing by using the Apple Pay method:
- To process each purchase, send a separate POST request to the /v2/payment/applepay/recurring endpoint.
- Each request must include the following objects and parameters:
- Object
general
—general purchase information:project_id
—project identifier obtained from ecommpay during integrationpayment_id
—payment identifier unique within the projectsignature
—request signature generated after all required parameters are specified (details—in the Signature generation and verification) (details)
- Object
payment
—payment information:amount
—payment amount in the smallest currency unitcurrency
—payment currency code in the ISO-4217 alpha-3 format
- Object
customer
—customer information:ip_address
—customer IP address relevant for the initiated payment
- Object
recurring
—COF purchase information:id
—registered COF purchase identifier
- Object
- Additionally, any other parameters included in the specification can be used.
Thus, a correct purchase request by using the Apple Pay method must contain the project identifier, basic payment information (identifier, amount, and currency code), customer IP address, COF purchase identifier, as well as signature.
Format of request for cancellation of COF purchases
Until the expiration date of a COF purchase, you can cancel it. Also, to change the conditions of COF purchases, you must cancel it and send a request to register a new one.
There are several things you must consider when cancelling COF purchases by using the Apple Pay method:
- To cancel each purchase, send a separate POST request to the /v2/payment/applepay/recurring/cancel endpoint.
- Each request must include the following objects and parameters:
- Object
general
—general purchase information:project_id
—project identifier obtained from ecommpay during integrationpayment_id
—payment identifier unique within the projectsignature
—request signature generated after all required parameters are specified (details—in the Signature generation and verification) (details)
- Object
recurring
—COF purchase information:id
—registered COF purchase identifier
- Object
- Additionally, any other parameters included in the specification can be used.
Thus, a correct purchase request by using the Apple Pay method must contain the project, payment and COF purchase identifiers, as well as signature.
Callback format
The standard format for callbacks is used to deliver the results of actions with COF purchases. For more information, see Callbacks.
The following is the example of a callback with an information about COF purchase registration for a customer in the 208
project.
The following is the example of a callback after COF purchase cancellation.
The following is the example of a callback with an information about a declined registration of a COF purchase.
Useful links
The following articles can be useful when implementing purchases 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.
- 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 Apple 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 Apple 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 Apple Pay method:
- To initiate each refund, send a separate POST request to the /v2/payment/applepay/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 Apple 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 Apple 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 in the 260
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.
Payouts by using Gate
General information
To process a payout through Gate by using the Apple 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 payout processing are provided below.
Information about the formats of requests and callbacks used for processing payouts by using the Apple 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 payout requests by using the Apple Pay method:
- To initiate each payout send a separate POST request to the /v2/payment/card/payout/token endpoint.
- Each request must include the following objects and parameters:
- Object
general
—general payout information:project_id
—project identifier obtained from ecommpay during integrationpayment_id
—payment identifier unique within the projectsignature
—request signature generated after all required parameters are specified (details—in the Signature generation and verification) details
- Object
payment
—payment information:amount
—payout amount in the smallest currency unitcurrency
—payout currency code in the ISO-4217 alpha-3 format
- Object
customer
—customer information:id
—customer identifier unique within the projectfirst_name
—customer first namemiddle_name
—customer middle name or patronymiclast_name
—customer last nameip_address
—customer IP address relevant for the initiated payout
- Object
card
—card information:card_holder
—full name of the cardholder
token
—token of the card received from ecommpay in the parameter included in a callback with information about a processed purchase.
- Object
- In the case of a payout to Visa card issued in Canada, the request must contain the
recipient
object with the payout recipient's address data: - In the case of a payout processed as part of the Visa Money Transfer program to a card issued in Brazil or Qatar, the request must contain the sender's phone number in the
phone
parameter of thesender
object. - In the case of a payout that originates from a physical person and that is processed as part of the programs supported for the Mastercard MoneySend service, the request must contain the information about the payout recipient's name in the
first_name
andlast_name
parameters of therecipient
object and the information about the payout sender in thesender
object:- number of the sender's payment instrument—
pan
for the sender's card orwallet_id
for the sender's electronic wallet first_name
—sender's first namelast_name
—sender's last nameaddress
—sender's addresscity
—sender's cityzip
—sender's postal codecountry
—sender's country code in ISO 3166-1 alpha-2- if the specified country code is CA or US, also pass the
state
parameter that provides information about the sender's state, province, or any other region
- number of the sender's payment instrument—
- Additionally, any other parameters included in the specification can be used.
Thus, a correct payout request by using the Apple Pay method must contain the project identifier, basic payment information (identifier, amount, and currency code), customer information, as well as token and signature.
Callback format
The Apple Pay method uses the standard format for callbacks to deliver payout results. For more information, see Callbacks.
The following is the example of a callback with information about a 1.00 EUR
payout made in the 123
project.
The following is the example of a callback with information about a declined payout.
Useful links
The following articles can be useful when implementing payouts 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.
- Payouts—about processing of payouts 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.
Payouts by using Dashboard
When working with Dashboard, you can process payouts by using the Apple Pay method using batch requests. Each batch can contain one or more payout requests.
To process a number of payouts, prepare and upload a file with information about all target payouts, send a batch request, and verify that the payouts have been processed.
Use a CSV file structured according to the requirements presented in the Mass payments data section. The payout parameters must comply with the requirements (you do not have to generate a signature because it is specified by Dashboard).
More information about processing payouts by using Dashboard is presented in a separate section.
Payment card verification
General information
To perform a payment card verification by using Apple Pay method, the merchant web service must send a request with all the required parameters and signature to ecommpay URL, and receive a callback with the information about the result. Payment card verification processing for this method is the same as standard processing sequence which is provided in the section Payment instrument verification.
Format of request for payment card verification
There are several things you need to consider when sending payment card verification requests by using the Apple Pay method:
- To initiate each verification, send a separate POST request to the /v2/payment/applepay/account_verification endpoint.
- Each request must include the following objects and parameters:
- Object
general
—general purchase information:project_id
—project identifier obtained from ecommpay during integrationpayment_id
—payment identifier unique within the projectsignature
—request signature generated after all required parameters are specified (details—in the Signature generation and verification) (details)
- Object
payment
—payment information:amount
—payment amount in the smallest currency unitcurrency
—payment currency code in the ISO-4217 alpha-3 format
- Object
customer
—customer information:id
—customer identifier unique within the projectip_address
—customer IP address relevant for the initiated payment
etoken
— information about token that represents card details received from the Apple Pay service:token
—token received from Apple Pay in JSON format after user identification, must be specified as a string. The value of this parameter can contain such information as the payment identifier on the Apple Pay side, the type of the international payment system, and various service data.
- Object
- The payment amount must be zero.
- Additionally, any other parameters included in the specification can be used.
Thus, a correct purchase request by using the Apple Pay method must contain the project identifier, basic payment information (identifier, amount, and currency code), customer identifier and IP address, Apple Pay token information, as well as signature.
Callback format
The Apple Pay method uses the standard format for callbacks to deliver results. For more information, see Payment instrument verification.
Useful links
The following articles can be useful when implementing purchases 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.
- 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.
Testing
General information
For the Apple Pay method, it is possible to test one-step and two-step purchases by using Payment Page and Gate, as well as payment card verification by using Gate. To enable and disable testing, as well getting assistance with setting up a test project, refer to ecommpay technical support. When testing purchases by using Gate the web service must adhere to the following requirements:
- The we service domain should be registered in the Apple services. For registration contact the ecommpay technical support support@ecommpay.com
- The site supports scripting functionality to start an Apple session according to documentation
Other notes which are specified in the General information table should be taken into account when testing purchases.
When testing payments and operations keep in mind that the test project identifier must be indicated in requests, the interfaces of the emulator of Payment Page and Apple Pay payment forms, the 3‑D Secure authentication page can differ from the production environment. To avoid errors during purchase testing it is recommended to use a payment card which is already registered in the Apple Pay service. This does not influence the processing of real payments by using such cards, but allows to perform full-fledged testing.
Statuses of test payment and operations
The final status of test payments and operations is determined by the amount specified in the request.
Test one-step and two-step purchases:
1000
amount to get thesuccess
status2000
,5000
or10001
amount to get thedecline
status
Test payment card verification:
0
amount to get thesuccess
status- any other amount to get the
decline
status
One-step purchases by using Payment Page
To perform a test one-step purchase by using Payment Page, do the following:
- Send a correct test request for Payment Page opening to the payment platform.
- If the
card
orapple_pay_core
method was not specified in the request—select the method on the emulator page. - Confirm the purchase.
- Receive the final callback with information about the payment result.
More information about processing purchases by using the Apple Pay method via Payment Page is provided in the One-time purchases by using Payment Page section.
One-step purchases by using Gate
To perform a test one-step purchase by using Gate, do the following:
- Send a correct test request for starting a payment session to the payment platform.
- Receive customer and payment session data.
- Confirm the purchase.
- Send a correct test purchase request to the payment platform.
- Receive the final callback with information about the payment result.
More information about processing purchases by using the Apple Pay method via Gate is provided in the One-time purchases by using Gate section.
One-step purchases by performing authorization hold via Payment Page and capture or cancellation via Gate
To perform a test one-step purchase by performing authorization hold via Payment Page and capture or cancellation via Gate, do the following:
- Send a correct test request for Payment Page opening to the payment platform.
- If the
card
orapple_pay_core
method was not specified in the request—select the method on the emulator page. - Confirm the purchase.
- Accept a callback with information about successful authorization hold.
- Send a capture or cancellation request.
- Receive the final callback with information about the result.
More information about processing purchases by using the Apple Pay method via Gate is provided in the One-time purchases by using Payment Page and One-time purchases by using Gate sections.
One-step purchases by performing authorization hold and capture or cancellation via Gate
To perform a test one-step purchase by performing authorization hold and capture or cancellation via Gate, do the following:
- Send a correct test request for starting a payment session to the payment platform.
- Receive customer and payment session data.
- Send a correct test purchase request to the payment platform.
- Confirm the purchase.
- Accept a callback with information about successful authorization hold.
- Send a capture or cancellation request.
- Receive the final callback with information about the result.
More information about processing purchases by using the Apple Pay method via Gate is provided in the One-time purchases by using Gate section.
Payment card verification by using Gate
To process a test payment card verification by using Gate, send a valid test request for a verification to the payment platform and receive a final callback with information about the verification result. More information about performing payment card verification by using the Apple Pay method via Gate is provided in the Payment card verification section.
Analysis of payments results
To analyse information about payments made with the Apple 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.