#ibtashamAlee
1 messages · Page 1 of 1 (latest)
Hi
Can you share a PaymentIntent Id ?
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 ?
here it is
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
have you done the steps at https://stripe.com/docs/apple-pay?platform=react-native to sign up for an Apple Pay Processing Certificate in your Apple Developer account and configured your app's project to use it, and uploaded the public cert to Stripe?
yes i did that too
apple pay is working on ios simulator
but not on real device
i created merchant id too
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)
i dont have xcode logs as i run the app using expo
but i can provide you other details
<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
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)?
it is merchant.com.pronto-pizza-muralto
i corrected it in xcode too
but didnt work
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
ok