#supriya

1 messages · Page 1 of 1 (latest)

stoic mantleBOT
tidal abyss
#

👋 How can we help?

clear parrot
#

I am facing issue in mobile app to see applePay option

#

In my earlier conversation we decided to check. applePay supported flag in device

tidal abyss
#

Do you mean you're unable to see Apple Pay as a payment option in the mobile app?

clear parrot
#

yes

#

applePay is not supported in the device

#

iPhone 12 Pro/ios version 16.1.2

tidal abyss
#

Do you see Apple Pay in other iPhone?

clear parrot
#

In our web app we are seeing

tidal abyss
clear parrot
#

yes

#

from this flag I am getting not supported const { isApplePaySupported } = useApplePay();

tidal abyss
#

Does the Apple Pay have any saved card?

clear parrot
#

Ok

#

Yes it has saved card

#

In same iPhone I am able to see applePay option for web app link

tidal abyss
#

Can you share your account ID?

clear parrot
#

acct_1KLw9TLKlYuBq7sc

#

need more info?

tidal abyss
#

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?

clear parrot
#

stripe sdk

tidal abyss
#

How about your web integration? Does it use a separate integration from mobile?

clear parrot
#

yes thats completely different

tidal abyss
#

Or can you share the guide which you follow?

clear parrot
#

I followed same guide

tidal abyss
clear parrot
#

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);
}
};

tidal abyss
clear parrot
#

OK .Let me try this and get back then

sly marten
#

Hi @clear parrot I'm taking over, let me know if you need any help

clear parrot
#

No Thank you

sly marten
#

OK. Does using isPlatformPaySupported solve your problem?

clear parrot
#

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...

sly marten
#

The isPlatformPaySupported returns a Promise<boolean>, it doesn't provide the reason why it's not supported.

clear parrot
#

I am using 0.2.3 - "@stripe/stripe-react-native": "0.2.3"

#

Is it anything to do with version

sly marten
clear parrot
#

Is this correct?

#

or should I add .applepay infront od merchant id?

sly marten
#

Hmm, why is your merchant ID in red? Do you see any error or warning in your xcode log?

clear parrot
#

Not finding any issues