Hosted Payment Page
If you are using an Airwallex hosted checkout solution then you just need to enable your account for Apple Pay and start accepting Apple Pay payments, Airwallex handles all the exchange with Apple behind the scenes.
If you are using HPP integration mode then you need not add a domain while Enabling Apple pay. Refer Enable Apple pay section for more details.
Steps to integrate
Create PaymentIntent See how to create a payment intent API with the Airwallex API for an example of intent details.
Integrate Hosted Payment Page See the HPP integration guide JS for more details on customizations.
Configure Apple Pay Include the applePayRequestOptions object when calling the Airwallex redirectToCheckout function.You can also include additional information : Configure the button style or Configure the fields which include information about payment processing capabilities, the payment amount, consumer billing address and shipping information. See more detials.
See the HPP config options JS for more details.
Subscription payments
You can use Apple Pay payment method to setup subscription payments on your website. Our API enables clients to provide clear information about the recurring contract terms which makes it easy for consumers to checkout with ease.
This documentation is limited to subsequent Merchant initiated transactions, subsequent Consumer Initiated Transaction is not considered since Apple Pay is a digital wallet and already uses saved credentials to process payments.
Save details with deferred payment
- You need to follow the steps as described in the documentation
- Configure Apple Pay to include information about the order items, charge & contract details, these details will be displayed on the paymentsheet shown to customer.
- Please see example below for variable amount / variable subscription use-case with deferred payment.
Save details with payment
- You need to follow the steps as described in the documentation
- Configure Apple Pay to include information about the order items, charge & contract details.
- Please see example below for variable amount / variable subscription use-case with immediate payment.