Use ApplePay

Place an order using catalog products defined in your Control Panel, and collect the payment using ApplePay.

Currency support

Check with 2Checkout support for a list of currencies available for ApplePay.

Activation

For activation, you need to have Apple Pay enabled on your 2Checkout account. Contact the Merchant Support team in order to enable this. After 2Checkout sets up our domain, we will provide you with a domain verification file.

Host your domain verification file at the following path on our server: https://[DOMAIN_NAME]/.well-known/apple-developer-merchantid-domain-association.

Workflow

  1. Initialize an ApplePay session using our API.

  2. Collect the "ApplePayDataToken" provided by Apple Pay client side and pass it server side to make the placeOrder API call.

  3. Create the order object. Use APPLE_PAY as the type in the PaymentDetails object and pass the "ApplePayDataToken" through the "ApplePayToken" property in the PaymentMethod object. Place the order.

Request parameters

Parameter
Type / Description

sessionID

Required (string)

Session identifier, the output of the Login method. Include sessionID into all your requests. 2Checkout throws an exception if the values are incorrect. The sessionID expires in 10 minutes.

Required (object)

Object designed to collect all data necessary for an order, including billing, product/subscription plan and payment details.

Request sample

Response parameters

Parameter
Description

Object containing order information.

Last updated

Was this helpful?