#phillip_unexpected
1 messages ยท Page 1 of 1 (latest)
๐ Welcome to your new thread!
โฒ๏ธ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.
โฑ๏ธ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always start a new thread if you have another question.
๐ This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1425366390755299339
๐ Have more to share? Add more details, code, screenshots, videos, etc. below.
Payload:
[{ label: "Total", amount: `1000`, paymentType: PlatformPay.PaymentType.Immediate }
This is for Stripe Connect accounts
Hi! Do you have a screenshot where it shows Payment Not Complete?
i can try grab one now
Ignore the background Alert, That is me trying to force completion timeout.
pi_3SFqjc4Fcda6krtR0IQsSC4F
Hi there, I'm also an engineer from Stripe. Can you do a console.log for the error object returned from confirmPlatformPayPayment
Will have to get a testflight up, this is not happening in test env.
Ok, is this problem consistently happening in live mode?
Yes, only in live. When i was in test this never happened.
await initStripe({
publishableKey: env.EXPO_PUBLIC_STRIPE_PK,
stripeAccountId: data.stripe_connect_id,
merchantIdentifier: "merchant.com.athlopolis.tg",
});
// Temporary production debugging - remove after fixing
const debugInfo = {
payload,
currency,
merchantId: "merchant.com.athlopolis.tg",
stripeKey: env.EXPO_PUBLIC_STRIPE_PK.substring(0, 20) + "...",
countryCode: "GR",
};
Alert.alert("Debug", JSON.stringify(debugInfo));
const result = await confirmPlatformPayPayment(data.client_secret, {
applePay: {
cartItems: payload,
merchantCountryCode: "GR",
currencyCode: currency,
},
});
Alert.alert("Apple Pay result", JSON.stringify(result));
if (result.error) {
console.error("Apple Pay error:", result.error);
Alert.alert(result.error.code || "Payment Error", result.error.message || "Payment failed. Please try again.");
return;
};
if (result.paymentIntent?.status === "Succeeded") {
console.log("Payment confirmed as successful");
Alert.alert("Success", "Your booking is confirmed!");
router.push("/(tabs)/bookings");
} else {
console.warn("Payment intent status is not 'succeeded':", result.paymentIntent?.status);
Alert.alert("Warning", "Payment processed but status unclear. Please check your bookings.");
router.push("/(tabs)/bookings");
}
} catch (error) {
console.error("Apple Pay exception:", error);
Alert.alert("Error", "An unexpected error occurred. Please try again.");
}
As seen here result.paymentIntent?.status === "Succeeded" was true but the UI still showed "Payment Not Completed"
Ok, so the Apple Pay paymentsheet shows "Payment Not Completed", but the result.error is undefined?
Yes there is no result.error and payment is taken on Stripe.
Ok, this is really strange.
Can I recommend you to upgrade to the latest stripe-react-native SDK (https://github.com/stripe/stripe-react-native/blob/master/CHANGELOG.md#0541---2025-10-01) and see if you still encounter this problem?
Yeah will do now, and get a TestFlight up.
Hey, taking over here. Let me know if there's any follow-up Qs I can answer!
Hey @quiet ember ๐๐ป
Just updating the package to 0.54.1 now and running a local test then will get a TestFlight up to test production
@quiet ember 0.54.1 has fixed the issue ๐ฅณ
Great to hear!