#nguyensivan_unexpected

1 messages ¡ Page 1 of 1 (latest)

pine minnowBOT
#

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

lyric edge
#

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

low temple
#

my-redirect-url
it is the sample

lyric edge
#

ok sure, I see in the real API request you pass a real URL

low temple
#

so in My stripe dashboard, this payment stuck at the step: The PaymentIntent requires action and can not complete the order

lyric edge
#

can you share the complete code of your component please? in text, not screenshots

low temple
#

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

lyric edge
#

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

low temple
#

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

lyric edge
#

still looking to see if I can reproduce this problem

pine minnowBOT
lyric edge
low temple
#

maybe your video is same root cause with me

lyric edge