REST API | Visa Platform Connect

Configuring Apple Pay

After enrolling in Apple Pay, use these steps to configure Apple Pay on your website:
  1. Configure Apple Pay by following the instructions on the Apple Developer Center: Apple Pay on the Web.
  2. After the payment token is received, finalize the transaction by decrypting the payment data based on the type of encryption:
    • Cybersource
      Decryption
      : This method forwards the encrypted payment data to your order management system. You use the
      Cybersource
      API to submit the authorization request and include the Base64-encoded value obtained from the
      paymentData
      object in the
      paymentInformaton.fluidData.value
      field.
      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 the
      Cybersource
      API to submit the authorization request and include the decrypted payment data.