Setup RequiredBefore implementing Apple Pay payments, ensure you have completed the prerequisites.
Testing EnvironmentApple Pay is not supported in the iOS Simulator. To test Apple Pay functionality, you must use a physical iOS device.
Apple Pay on the web is not limited to Safari or Apple devices. It also works in third-party browsers on iPhone, iPad, and macOS, and in any browser on Windows through Apple’s cross-device payment flow. See Supported devices and browsers for the full matrix.
Cross-Origin Iframe Embedding (Web SDK 1.11.31+)When embedding checkout in an iframe hosted on a different domain, Safari requires validating the Apple Pay merchant session against the top-level parent page domain. The Web SDK detects this automatically. The top-level domain must be registered on the Apple Pay connection, otherwise the session falls back to the iframe domain. You can explicitly specify the parent domain or disable detection using
externalButtons.applePay.topLevelDomain. See the Web SDK reference.Apple Pay overview
- Customer initiates payment on their iOS device
- Receive
payment_tokenvia Apple SDK - Create a checkout session with Yuno
- Yuno processes with your configured provider(s) and returns a response
- Monitor response status via webhooks
Add Apple Pay capability
To add Apple Pay capability to your iOS app:- In Xcode, select your project in the navigator
- Select your app target
- Go to the Signing & Capabilities tab
- Click + Capability and search for “Apple Pay”
- Add the Apple Pay capability
- Configure your Merchant IDs in the Apple Pay section
One-time payments with SDK
Create checkout session
Use the create checkout session endpoint to create a payment session for one-time Apple Pay transactions:Process the payment
The SDK handles the Apple Pay flow automatically. When the customer completes the Apple Pay authorization, the payment is processed immediately.Requesting Contact Information
You can configure which contact fields Apple Pay requests from the customer directly from the Checkout Builder. The available fields are:- Phone
- Holder name
- Billing address
- Shipping address
Each additional required field adds an extra step to the Apple Pay payment sheet, increasing friction for the customer. This can negatively impact conversion rates. Yuno recommends enabling only the fields that are strictly necessary for your business or regulatory requirements.
Holder name (cardholder name) is disabled by default for Apple Pay, unlike cards, where it’s enabled by default. Enable it from the Checkout Builder if your integration needs it.
Next steps
- Recurring payments. Customer-initiated and merchant-initiated transactions with a vaulted token.
- Express checkout. Order breakdown, shipping methods and shipping address updates on the payment sheet.
- Card filters and good to know. Filter eligible cards, read the DPAN BIN from the one-time token and handle cancellations.