- 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 detailed information about decryption, see Payment Token Format Reference in the Apple Developer Center. Use theCybersourceAPI to submit the authorization request and include the decrypted payment data.