This is the Above API to process the payment through google pay also ApplePay. Under OpaqueValues the datavalue is base64 token. My Question is how to generate this token from googlePay and ApplePay so that we can process the payment in Flutter.
This is the Above API to process the payment through google pay also ApplePay. Under OpaqueValues the datavalue is base64 token. My Question is how to generate this token from googlePay and ApplePay so that we can process the payment in Flutter.
Browsing Authorize.Net's documentation, I came across the following: https://developer.authorize.net/api/reference/features/in-app.html#Google_Pay%E2%84%A2
Using the Payment Network Token
After obtaining a payment network token from Google Pay, encode the token's blob using Base64:
new String(Base64.encode(paymentData.getPaymentMethodToken().getToken().getBytes()))Submit a
createTransactionRequestAPI call. Set thedataDescriptorfield toCOMMON.GOOGLE.INAPP.PAYMENT, and set thedataValuefield to the Base64-encoded blob.