You can integrate Apple Pay into your payment system using these methods for In-App and
Web transactions:
- CybersourceDecryption
- Merchant Decryption
In-App Transactions Using the Cybersource
API and Decryption
Cybersource
API and Decryption
- When the customer chooses to pay with Apple Pay, you use the Apple PassKit Framework to request the encrypted payment data from Apple.
- Apple uses the Secure Element to create a payment token and encrypt the token’s payment data before it sends your application.The payment token is thePKPaymentTokenstructure.
- You forward the encrypted payment data to your order management system.
- Using theCybersourceAPI, you submit the authorization request. In thepaymentInformaton.fluidData.valuefield, include the Base64-encoded value obtained from thepaymentDatafield of thePKPaymentTokenstructure.
- Cybersourcedecrypts the payment data and forwards the information to the payment network, which includes your processor and the relevant payment card company.IMPORTANTYou must use the Business Center or one of theCybersourceAPI services to capture, credit, or void the authorization. Refer to thePayments Developer Guide(see Related information below) for information.
In-App Transactions Using the Cybersource
API and Merchant Decryption
Cybersource
API and Merchant Decryption 
- When the customer chooses to pay with Apple Pay, you use the Apple PassKit Framework to request the encrypted payment data from Apple.
- Apple uses the Secure Element to create a payment token and encrypt the token’s payment data before it sends your application.The payment token is thePKPaymentTokenstructure.
- You forward the encrypted payment data to your order management system to decrypt. For information on decryption, see:
- Using theCybersourceAPI, you submit the authorization request and include the decrypted payment data.
- Cybersourceforwards the information to the payment network, which includes your processor and the relevant payment card company.IMPORTANTYou must use the Business Center or one of theCybersourceAPI services to capture, credit, or void the authorization.Refer to thePayments Developer Guide(see Related information below) for information.
Web Transactions Using Cybersource
Decryption
Cybersource
Decryption- When the customer chooses to pay with Apple Pay, you use the Apple Pay JavaScript to request the encrypted payment data from Apple.
- Apple uses the Secure Element to create a payment token and encrypt the token’s payment data before it sends your application using theonpaymentauthorizedcallback function.The payment token is thePKPaymentTokenstructure.
- You forward the encrypted payment data to your order management system.
- Using theCybersourceAPI, you submit the authorization request. In thepaymentInformaton.fluidData.valuefield, include the Base64-encoded value obtained from thepaymentDatafield of thePKPaymentTokenstructure.
- Cybersourcedecrypts the payment data and forwards the information to the payment network, which includes your processor and the relevant payment card company.IMPORTANTUse the Business Center or one of theCybersourceAPI services to capture, credit, or void the authorization. Refer to thePayments Developer Guide(see Related information below) for information.
Web Transactions Using Merchant Decryption
- When the customer chooses to pay with Apple Pay, you use the Apple Pay JavaScript to request the encrypted payment data from Apple.
- Apple uses the Secure Element to create a payment token and encrypt the token’s payment data before it sends your application using theonpaymentauthorizedcallback function.The payment token is thePKPaymentTokenstructure.
- You forward the encrypted payment data to your order management system to decrypt. For information on decryption, see:
- Using theCybersourceAPI, you submit the authorization request and include the decrypted payment data. See Using the Merchant Decryption Method.
- Cybersourceforwards the information to the payment network, which includes your processor and the relevant payment card company.IMPORTANTUse the Business Center or one of theCybersourceAPI services to capture, credit, or void the authorization. Refer to thePayments Developer Guideguide (see Related information below) for information.