#ibtashamAlee

1 messages · Page 1 of 1 (latest)

wary finchBOT
vast willow
#

Hi
Can you share a PaymentIntent Id ?

upper sapphire
#

ok

#

pi_3NAp2cAr4uw8UwZF0TDAqzCl

vast willow
#

Thanks for sharing, so the error you are getting isn't from Stripe APIs. The PaymentIntent is created successfully.

#

How are integrating Apple Pay ?

#

Can you share some codes? from where that error code is thrown ? any additional logs?

#

The main problem is i am able to pay on simulator but i get this error on real device
Are you using real live card ?

wary finchBOT
upper sapphire
#

i am getting error at this point:
console.log("Error ===", error);

and the error is

{"error": {"code": "Failed", "declineCode": null, "localizedMessage": "Payment not completed", "message": "Payment not completed", "stripeErrorCode": null, "type": null}}

and The apply pay pop up is not opening and i get this error right after clicking the apple pay button

shrewd berry
upper sapphire
#

yes i did that too

#

apple pay is working on ios simulator

#

but not on real device

#

i created merchant id too

shrewd berry
#

can you try and get some logs from the device in the Devices and Simulators view in XCode and see what is logged when this happens?

also add logs to log every value you are passing to confirmPlatformPayPayment so we can see if anything is unusual at runtime

also confirm/share the code for how you create the <StripeProvider> component(since that's where the merchant ID is provided)

upper sapphire
#

i dont have xcode logs as i run the app using expo

#

but i can provide you other details

upper sapphire
#

<StripeProvider
publishableKey={STRIPE_PUBLISHABLE_KEY}
merchantIdentifier={MERCHANT_IDENTIFIER}
>
<NavigationContainer theme={navTheme}>
<PaperProvider theme={theme}>
<BottomSheetModalProvider>
<ProductSearchBottomSheet />
<MainStack />
</BottomSheetModalProvider>
</PaperProvider>
</NavigationContainer>
</StripeProvider>

#

and client secret passing to confirmPlatformPayment
pi_3NAs4mAr4uw8UwZF14Nok5sP_secret_l3DQuayhbg0XtUQfb1MnrUSYh

shrewd berry
#

why is your merchantIdentifier the value merchant.com.pronto-pizza-muralto?

#

shouldn't it be merchant.com.pronto.pizza.muralto instead (per the ID you have configured in the XCode project in the screenshot above)?

upper sapphire
#

it is merchant.com.pronto-pizza-muralto

#

i corrected it in xcode too

#

but didnt work

shrewd berry
#

I'd concentrate on trying to get some logs from the device(no idea how to do that in Expo)

#

also if you can try running the app on a colleague's phone or a different phone too

upper sapphire
#

ok