On This Page
REST API | Visa Platform Connect
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 apayment tokenand encrypt the token’spayment databefore it sends your application using theonpaymentauthorizedcallback function.Thepayment tokenis thePKPaymentTokenstructure.Thepayment datais thepaymentDatafield of 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 theBusiness Centeror one of theCybersourceAPI services to capture, credit, or void the authorization.