sorokin0andrey/react-native-google-pay

How to Handle Response

affanhashone opened this issue · 5 comments

How to Handle Response when payment is success there is no response url ?
in response token i get exampleTokenrequest

in response token i get exampleTokenrequest

That's right, because you use test data in response comes a test token. You need to enter the details of your payment gateway and send it the received token for payment.

Okay Thank You, But is this right way to pass the data:

const requestData = {
cardPaymentMethod: {
tokenizationSpecification: {
type: 'PAYMENT_GATEWAY',
gateway: 'stripe',
gatewayMerchantId: '',
"stripe:publishableKey": "
**",
"stripe:version": "5.1.0"

          },
          allowedCardNetworks,
          allowedCardAuthMethods,
        },
        transaction: {
          totalPrice: "*****",
          totalPriceStatus: 'FINAL',
          currencyCode: 'USD',
        },
        merchantName: '********',
      };

I am using Stripe,its gives me error : Error in loadPaymentData: Field: stripe:version is missing

@affanhashone added support for stripe in version 1.3.0
Please check and give feedback

@sorokin0andrey Thanks Buddy, Its Working, Thanks You For Quick Support

@affanhashone you are welcome :)