#hodgln
1 messages · Page 1 of 1 (latest)
Which SDK are you using? Native iOS or React Native?
react native
Is this the same issue that you're facing? https://discord.com/channels/841573134531821608/1064391904021717032
seems similar yeah
I don't know what I'm missing that would mean that apple pay is not supported
I use initStripe instead of StripeProvider
but cant see why that would cause a problem
isApplePaySupported has been replaced by isPlatformPaySupported. Can you try whether it works? https://github.com/stripe/stripe-react-native/blob/master/docs/Platform-Pay-Migration.md
// import usePlatformPay
import {
usePlatformPay,
} from '@stripe/stripe-react-native';
// get isPlatformPaySupported
const {
isPlatformPaySupported,
} = usePlatformPay();
For example: https://github.com/stripe/stripe-react-native/blob/master/example/src/screens/ApplePayScreen.tsx
Hi @final yarrow I'm taking over this thread
ok
Are you using the latest stripe-react-native SDK?
I doubt it, what is the latest version
I use 0.19.0
This is quite an old version, you might want to update the SDK and try again.
Okay
will update then return
To test this I will have to create a new build, which may take an hour or so
Just before I go and do that. I want to check its definitely not my integration thats incorrect.
Have you completed all these steps? https://stripe.com/docs/apple-pay?platform=react-native#accept
Then you need to check with expo and see how to achieve the above mentioned steps in an expo project.
I use expo sdk 47 which means 19 is the highest compatible version
I have registered my ios merhcant identifier with stripe and on apple developers. Set it in initStripe(). I don't know what else I need to do?
Have you created a development build? (ref:
https://docs.expo.dev/versions/latest/sdk/stripe/#apple-pay)
I read about installing my certificate on my server? Not sure how though, you have any idea?
yeah all my builds are on testflight in production
Did you add a valid credit card to Apple Pay in your test device?
And you also enable Apple Pay capability in xcode?
No only used the test one, but its due to isApplePaySupported returning false means that I dont even get to see the payment sheet with apple pay
You still need to add a credit card to Apple Pay even to test in test mode.
I understand, but that isnt the problem, the problem is isApplePaySupported is returning false for an unknown reason
I need to know you current situation so that I can help you further.
Can you confirm the following
- You've registered a merchant ID
- You've created a new Apple Pay certificate
- You've set the merchant ID in StripeProvider
- You've enabled the Apple Pay capability in xcode
- You've add a valid credit card to Apple Pay in your test device
Yes all of that is correct,
Can you ignore the value of isApplePaySupported , perform an Apple Pay and see what error do you get?