This page explains how to add Apple Pay to your existing Web Drop-in integration.
Requirements
Select which endpoint you are using:
API reference
You do not need to send additional fields for Apple Pay. To see optional fields that you can send for all payment methods, choose the endpoint you integrated:
- /sessions: This is the default with Drop-in v5.0.0 or later.
- /payments: If you implemented an additional use case.
If you run into an error, refer to Handle Apple Pay errors.
Drop-in configuration
Select which endpoint you are using:
Optional configuration
This optional configuration parameter is only accepted on the dropin
instance.
Instant payment button configuration
Use the instantPaymentTypes
object to display the Apple Pay payment button at the top of the list of available payment methods. The sample below shows how to do this: