Confirms the order with PayPal after Apple Pay authorization.
Confirmation options including order ID, token, and contact information
Promise resolving to the confirmed order response
appleSdkSession.onpaymentauthorized = async (event) => {
const order = await createOrder();
await applePaySession.confirmOrder({
orderId: order.orderId,
token: event.payment.token,
billingContact: event.payment.billingContact,
shippingContact: event.payment.shippingContact,
});
appleSdkSession.completePayment({
status: ApplePaySession.STATUS_SUCCESS,
});
};
Formats the Apple Pay configuration for use in an Apple Pay payment request.
The Apple Pay configuration from eligible payment methods
Formatted Apple Pay payment request configuration
Validates the merchant with Apple Pay.
Validation options containing the validation URL, display name, and domain name
Promise resolving to the Apple Pay merchant session
Apple Pay one-time payment session interface.