You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
I'm using the createToken method introduced in 0.1.3 and I'm retrieving the token id (tok_xxxxx) in the response.
To Reproduce
Steps to reproduce the behaviour:
Hypothesis: card is valid Card object obtained from a stripe CardField component. I used a setState on the cardField handleChange to set this card object.
Describe the bug
I'm using the
createToken
method introduced in 0.1.3 and I'm retrieving the token id (tok_xxxxx) in the response.To Reproduce
Steps to reproduce the behaviour:
Hypothesis:
card
is valid Card object obtained from a stripeCardField
component. I used a setState on the cardField handleChange to set this card object.Using the following code :
I get the expected result I want but this implementation is surprising.
Expected behaviour
Response should be formatted the same on both platform.
Also, on the documentation website,
createToken
seems to expect parameter CreateTokenParams but it does not make a lot of sense to me, I guess typing is wrong here too ? (I'm expecting the type to be like this one: https://stripe.dev/stripe-react-native/api-reference/interfaces/card.params.html)Thanks in advance for your consideration.
@stripe/stripe-react-native : Version 0.1.3
The text was updated successfully, but these errors were encountered: