1. Configure Apple Pay by following the instructions on the Apple Developer Center:

    ADDITIONAL INFORMATION

  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.