#Wellzio
1 messages · Page 1 of 1 (latest)
👋 @night oxide How can we help?
I am still facing issue in seeing applePay and googlePay options
Could you please help me?
What's the issue you're facing?
Not seeing applePay and googlePay in payement sheet
Apple Pay will only be shown in iPhone and Google Pay in Android
Could you share which one are you referring to and which SDK are you using?
Yes it was tested from Iphone and android resp
"@stripe/stripe-react-native": "0.2.3",
build.gradle file for android - implementation 'com.stripe:stripe-android:0.20.3'
You want more info
?
Thanks for waiting! Discord is busy now
For Apple Pay, do you register merchant ID, create certificate and follow the steps here: https://stripe.com/docs/payments/accept-a-payment?platform=react-native&ui=payment-sheet#react-native-apple-pay
Similarly for Google Pay, do you follow the guide here? https://stripe.com/docs/payments/accept-a-payment?platform=react-native&ui=payment-sheet#react-native-google-pay
yes I followed same steps mentioned in doc
Followed all merchant id certificate and all
Could you share the code of initPaymentSheet?
ok
const initializePaymentSheet = async () => {
try {
setVisible(true);
const { error } = await initPaymentSheet({
paymentIntentClientSecret: clientSecret,
merchantDisplayName: "Wellzio",
googlePay: {
merchantCountryCode: 'US',
currencyCode: 'usd',
},
applePay: {
merchantCountryCode: 'US',
}
}
);
if (error) {
setVisible(false);
Alert.alert("Error", "Failed to initialize payment sheet");
}
else {
setVisible(false);
openPaymentSheet();
}
}
catch (exc) {
setVisible(false);
Alert.alert('Error', exc.message);
}
};
Could you share your account ID (acct_xxx), so that I can check if merchant ID is properly set up?
Hi @night oxide 0.2.3 is a very old version, can I suggest you to upgrade to the most recent version? https://github.com/stripe/stripe-react-native/blob/master/CHANGELOG.md#breaking-changes
You can find your account ID by logging in to https://dashboard.stripe.com/settings/account. It'll be in the upper right hand corner and looks like acct_123
The latest react native version is 0.24.0
Can you just tel me stable version which supports applePay and googlePay
with paymentSheeet option
Account id - acct_1KLw9TLKlYuBq7sc
We always recommend the latest version
Android target sdk version is 31 and ios 11 - 0.24.0 will support this?
Is there doc where I can check that?
This is the iOS version supported: https://github.com/stripe/stripe-ios#requirements
This is the Android version supported: https://github.com/stripe/stripe-android#requirements
Ok
For iOS 11 support, please use v21.13.0. means what would be the stripe react native version?
As per https://github.com/stripe/stripe-react-native/blob/master/CHANGELOG.md#060---2022-04-01
If you would like to build for iOS 11, please continue to use @stripe/stripe-react-native@0.5.0
Any reason why you still support iOS 11? Please note the old SDK version may not support new features
Our platform :ios, '11.0'
To use 0.24.0 we should usse platform ios to 13.o and android sdk 31 or above rt?
Yup!