#johan
1 messages · Page 1 of 1 (latest)
What is indicating that it is not available in the library?
Are you running an older version of the library? You can see it exported here: https://github.com/stripe/stripe-react-native/blob/master/src/hooks/usePlatformPay.tsx
what version do I need to be on in order to use createPlatformPayPaymentMethod?
Ah, wait, that might just be a Typescript error. Can you try ignoring that line and see if you still get errors?
yeah sure
let me try that
nope it doesn't work
I don't think this documentation is right? there's also a variable PlatformPay that doesn't get imported anywhere
it's being used but I can't see being imported in any of the documentation I provided above
When you ignore the line, does it give a different error? If so, which one?
getting this error :/
what version do I need to be on?
this happened to me before with another method I was trying to use but was renamed to something else in a newer version. can you confirm please?
Going to dig in a bit more with a colleague. Will circle back once i get some clarity with them
thanks a lot np take your time
Can you give the version of the React Native library you're using?
It looks like you are indeed running an old version that doesn't have access to the new methods. The minimum version for those methods is v0.22.0
https://github.com/stripe/stripe-react-native/releases/tag/v0.22.0
Sure thing!
do you know what can I do instead of this?
I can't really just update the version because I'm using expo and I need to wait for the SDK to be compatible to a higher version of Stripe
for now, 1.19.0 is the latest I can have
Hmmm, I'm not sure. Here's a link to the changes that happened: https://github.com/stripe/stripe-react-native/blob/master/docs/Platform-Pay-Migration.md
You might be able to reverse engineer from that to do the thing.