Apple Pay is a digital wallet payment method that enables your customers to pay via their Apple Wallet, without the need to type any card details. When your customers select this payment method, the Paybyrd payment gateway calls the Apple Pay SDK to display a native Apple payment modal.
When the customer’s device or browser is supported, Paybyrd Checkout launches the native Apple Pay flow, enabling the customer to select a preferred card and pay with their configured Wallets.
When the customer’s device or browser not supported, the Paybyrd payment gateway calls the Apple Pay SDK to display a payment modal with a QR code. This enables customers to scan the code with an iPhone or iPad and pay with their configured Wallets.
Outcomes
Result
Behaviour
Success
Confirmation screen shown, customer redirected to redirectUrl.
Error / Declined
”Try again” screen shown. Customer can retry or pick another payment method.
You can integrate Apple Pay as a payment method in several ways. The first step is to manage domain validation, which is a hard requirement from Apple. This section guides you through the process.
When adding Apple Pay as an available payment method in an ecommerce setting, you need to create an order, then initiate a Checkout instance with the correct parameters.
Create an Order
Include "APPLE" in allowedPaymentMethods under the paymentOptions object when creating your order via the Paybyrd API:
You can combine Apple Pay with other methods, for example ["APPLEPAY", "CARD", "MBWAY"]. Each is shown or hidden based on device support and the parameter values you use.
Initiate a Checkout instance
You can initiate a Checkout instance in an iframe, or via a direct URL. In both cases, you can use the defaultPaymentMethod parameter to set Apple Pay as the default payment method. Simply add APPLEPAY as a value:
You can create a payment and provide it directly via a URL to your customers. Optionally, use the Payments API and configure the allowed payment methods programmatically.