On This Page
REST API | American Express
Configuring Apple Pay
After enrolling in Apple Pay, use these steps to configure Apple Pay on your
website:
- Configure Apple Pay by following the instructions on the Apple Developer Center:
ADDITIONAL INFORMATION
- After the payment token is received, finalize the transaction by decrypting the payment data based on the type of encryption:
- : This method forwards the encrypted payment data to your order management system. You use theCybersourceDecryptionCybersourceAPI to submit the authorization request and include the Base64-encoded value obtained from thepaymentDataobject in thepaymentInformaton.fluidData.valuefield.For example:session.onpaymentauthorized = function (event) { var paymentDataString = JSON.stringify(event.payment.token.paymentData); var paymentDataBase64 = btoa(paymentDataString); }
- Merchant Decryption: This method forwards the encrypted payment data to your order management system to decrypt. For information on decryption, see Payment Token Format Reference for details. Use theCybersourceAPI to submit the authorization request and include the decrypted payment data.