Fitpassu / react-native-stripe-payments

Lightweight, easy to integrate and use React native library for Stripe payments (using Payment Intents) compliant with SCA (strong customer authentication)
MIT License
98 stars 30 forks source link

My app is getting crashed when I'm trying to make payment! #6

Closed octocat01 closed 4 years ago

octocat01 commented 4 years ago

My app is getting crashed when I'm trying to pay using test credentials. I'm getting card valid to true but not when I go to confirmPayment app crashes without any log or error.

stripe.confirmPayment('client_secret_from_backend', cardDetails)
  .then(result => {
    console.log("result ", result)
  })
  .catch(err =>
    console.log("err ", err)
  )
viktorasl commented 4 years ago

Hey! What does the cash log say? I believe you should see stack of native crash log (either on iOS or Android)

octocat01 commented 4 years ago

@viktorasl hey sorry, I did not get any log at that time and then I didn't get time to check stack as I integrated stripe API directly.

nlabofa commented 4 years ago

same issue here. why was this closed ? @octocat01 @viktorasl

octocat01 commented 4 years ago

@nlabofa I closed this issue as I've integrated stripe API directly.

But if you could provide stack of native it would be helpful for debugging, as mentioned by viktorasl "Hey! What does the cash log say? I believe you should see stack of native crash log (either on iOS or Android)"

viktorasl commented 3 years ago

There is a similar issue (https://github.com/Fitpassu/react-native-stripe-payments/issues/18), maybe you were using secret key instead of publishable key as well?