REST API | Visa Platform Connect

Configuring Apple Pay Response Handling

Configure the decryption method to handle the response payload of a successful Apple Pay transaction.
  1. After the payment token is received, the transaction is finalized by extracting and decrypting the payment data.
    • National Australia Bank
      Decryption
      :
      This method forwards the encrypted payment data to your order management system. Use the
      National Australia Bank
      API to submit the authorization request, and include the Base64-encoded value obtained from the
      paymentData
      object in the
      paymentInformaton.fluidData.value
      field.
      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. Use the
      National Australia Bank
      API to submit the authorization request and include the decrypted payment data.
      For detailed information about decryption, see Payment Token Format Reference in the Apple Developer Center.