Apple Pay
Apple Pay allows customers to complete Shoppable Ads purchases using Apple Pay directly within the Rokt placement. The Rokt SDK handles Apple Pay session creation, payment sheet presentation, and payment processing. The Rokt Catalog brand is the Merchant of Record (MoR).
Apple Pay is supported on web and iOS, with additional platform support planned.
Sequence overviewSequence overview への直接リンク
- Placement loads. After the customer completes their transaction, the Rokt Shoppable Ads placement renders on the confirmation page.
- Eligibility check. The Rokt SDK determines whether Apple Pay is available on the customer's device. If not supported, the placement falls back to other eligible payment methods (e.g., card forwarding).
- Offer displayed. The placement displays the offer with the appropriate payment CTA based on available payment methods.
- Customer taps "Pay with Apple Pay". The Apple Pay payment sheet is presented, showing item details, price (including tax and shipping), and the brand's merchant name.
- Customer authorizes. The customer authenticates via Face ID, Touch ID, or device passcode.
- Payment processed. Rokt processes the payment with the brand as MoR. A confirmation screen is displayed within the placement.
- Placement closes. The partner's standard post-confirmation flow continues.
NOTE: If no eligible offer is available or no supported payment method is detected, the placement closes without displaying an offer.
Required attributesRequired attributes への直接リンク
Apple Pay uses the standard attributes passed during SDK initialization. For the full list, see the recommended attributes in the SDK Integration Guide.
The following attribute is used for Apple Pay payment method selection:
| Attribute | Type | Required | Description |
|---|---|---|---|
| payment_type | string | Yes | The payment method the customer used for their original transaction (e.g., visa, mastercard, amex, apple_pay, paypal). Rokt uses this to determine payment method priority. If the customer paid with Apple Pay, it is shown as the primary CTA. |
NOTE: If your platform does not have shipping address details available (e.g., ticket or digital goods purchases), pass billing address details instead. Rokt will provide a UI for the customer to confirm or edit their shipping address before completing the purchase.
Web setupWeb setup への直接リンク
Rokt manages domain registration, merchant configuration, and payment processing for Apple Pay end-to-end. Partners using SDK+ do not need any additional setup. Partners on the legacy SDK must enable the Apple Pay extension as described below.
SDK extensions (Legacy SDK only)SDK extensions (Legacy SDK only) への直接リンク
If you are using the legacy Rokt Web SDK (launcher.js), add payments-stripe-applepay to the extensions query parameter when loading the SDK script. If you also use card forwarding, include both extensions:
script.src = "https://apps.rokt.com/wsdk/integrations/launcher.js?extensions=instant-purchase,payments-stripe-applepay";
payments-stripe-applepay- enables Apple Pay as a payment method on Shoppable Ads placements.instant-purchase- enables card forwarding as a payment method on Shoppable Ads placements.
NOTE: If you are using SDK+ (versions after 2.5926.0), extensions are enabled automatically and no script changes are required.
Browser and device compatibilityBrowser and device compatibility への直接リンク
| Browser | Platform | Apple Pay Support | Notes |
|---|---|---|---|
| Safari 17+ | iOS 17+, macOS 12+ | Supported | Native Apple Pay. |
| Safari (older) | iOS, macOS | Limited | Same-origin only. |
| Chrome | iOS | Supported | Apple Pay is device-based on iOS. Works the same as Safari. |
| Chrome | Desktop (macOS) | Not supported | Rokt falls back to other payment methods. |
| Chrome / Firefox | Windows, Android | Not supported | Rokt falls back to other payment methods. |
Rokt automatically detects browser and device compatibility and will only display the Apple Pay button where it is supported. No additional gating logic is required from the partner.
NOTE: Shoppable Ads placements are typically rendered directly on the page, not within an iframe. This is required for Apple Pay to function correctly. If your integration renders the Rokt placement inside an iframe, contact your Rokt account manager to discuss additional configuration requirements.
iOS setupiOS setup への直接リンク
The steps below configure Apple Pay for any iOS-based integration (native iOS, React Native, Flutter, etc.). After completing these steps, return to your SDK integration guide to register the payment extension.