#supriya
1 messages · Page 1 of 1 (latest)
👋 How can we help?
I am facing issue in mobile app to see applePay option
In my earlier conversation we decided to check. applePay supported flag in device
Do you mean you're unable to see Apple Pay as a payment option in the mobile app?
Do you see Apple Pay in other iPhone?
In our web app we are seeing
Have you created Apple Pay certificate for iOS integration? https://stripe.com/docs/apple-pay#csr
yes
from this flag I am getting not supported const { isApplePaySupported } = useApplePay();
Does the Apple Pay have any saved card?
Can you also share your account ID? 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
Ok
Yes it has saved card
In same iPhone I am able to see applePay option for web app link
Can you share your account ID?
Just want to double check, does your web and mobile share the same integration?
Do you use webview or Stripe SDK for Apple Pay in mobile app?
stripe sdk
How about your web integration? Does it use a separate integration from mobile?
yes thats completely different
Do you use this React Native guide for your Apple Pay integration? https://stripe.com/docs/apple-pay?platform=react-native
Or can you share the guide which you follow?
I followed same guide
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
Act I used payment sheet
isPlatformPaySupported might be used in case of ApplePay button rt?
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);
}
};
Yup! It's not necessary in Payment Sheet, but could you have a try to see if isPlatformPaySupported returns the same?
Reference: https://github.com/stripe/stripe-react-native/blob/master/example/src/screens/ApplePayScreen.tsx
// import usePlatformPay
import {
usePlatformPay,
} from '@stripe/stripe-react-native';
// get isPlatformPaySupported
const {
isPlatformPaySupported,
} = usePlatformPay();
OK .Let me try this and get back then
Hi @clear parrot I'm taking over, let me know if you need any help
No Thank you
OK. Does using isPlatformPaySupported solve your problem?
No I will get to know its supported or not
In which case its not supported.. and why..I need to know the reasons act...
The isPlatformPaySupported returns a Promise<boolean>, it doesn't provide the reason why it's not supported.
I am using 0.2.3 - "@stripe/stripe-react-native": "0.2.3"
Is it anything to do with version
Have you completed all these steps? https://stripe.com/docs/apple-pay?platform=react-native#accept
I completed all these steps
Hmm, why is your merchant ID in red? Do you see any error or warning in your xcode log?
Not finding any issues