#nguyensivan_unexpected
1 messages ¡ Page 1 of 1 (latest)
đ Welcome to your new thread!
â˛ď¸ We'll be here soon! We typically respond in a few minutes, but in some cases we might need a bit more time (e.g., server's busy, you've got a complex question, etc.).
âąď¸ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can 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/1250389396717305866
đ Have more to share? Add details, code, screenshots, videos, etc. below.
hi! what do you mean by it getting stuck, what happens in the UI of the app after you press the authorise test payment button?
also your return url in that code seems wrong?
my-redirect-url is not a real value, it needs to a valid https:// URL(if using universal links) or an app schema like myapp://payment-complete
my-redirect-url
it is the sample
ok sure, I see in the real API request you pass a real URL
when I click authorize test payment, it redirect to my-redirect-url?status=approved instead of https://pm-redirects.stripe.com/authorize/acct_xxx/pa_nonce_xxx
so in My stripe dashboard, this payment stuck at the step: The PaymentIntent requires action and can not complete the order
can you share the complete code of your component please? in text, not screenshots
const getInitPaymentSheetError = async (purchaserEmail: string, orderTokenSecret: string, accessToken: string) => {
const { error } = await initPaymentSheet({
merchantDisplayName: 'DEFAULT_MERCHANT_NAME',
paymentIntentClientSecret: 'pi_3PQnX0AfC1NR9PLZ1V9hcKji',
allowsDelayedPaymentMethods: true,
defaultBillingDetails: { email: purchaserEmail.trim() },
appearance: {
colors: {
primary: '#323232',
primaryText: '#323232'
}
},
returnURL: 'my-redirect-url'
});
return error;
};
I use presentPaymentSheet() to show paymentSheet
paymentIntentClientSecret: 'pi_3PQnX0AfC1NR9PLZ1V9hcKji', is not valid, the format is pi_xxx_secret_yyyy
sorry, I need to see the actual code you are actually running, the complete component including how you call presentPaymentSheet
const { error } = await initPaymentSheet({
merchantDisplayName: 'GOFAN',
paymentIntentClientSecret: 'pi_3PQoKVAfC1NR9PLZ1LeFefjt_secret_333PnvNkuLiEQGpXSTI87RUUF',
allowsDelayedPaymentMethods: true,
defaultBillingDetails: { email: 'vana@gmail.com' },
appearance: {
colors: {
primary: '#323232',
primaryText: '#323232'
}
},
returnURL: https://qa1.gofan.co/order-details/96b4b7ba-bc71-4d88-8433-d9f5dd4bcdb8?fromCheckout=true
});
I 'm sorry, this is new update for real code, when I click button it call presentPaymentSheet(). the payment mocal will show, I choose Amazon Pay and click Pay $10.80. Then it redirect to https://stripe.com/payment_methods/test_payment?payment_attempt=payatt_3PQoKVAfC1NR9PLZ1tCgL2FS. I click authorize test payment, it redirect to my web and this order not complete
still looking to see if I can reproduce this problem
when you try does it look like this, it spins and then nothing happens ?
ok, I'd suggest opening a support ticket at https://support.stripe.com/?contact=true reporting the issue. I also escalated it internally to be looked at.