#snke-plenigo_best-practices

1 messages · Page 1 of 1 (latest)

west hullBOT
#

👋 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/1290742805102199015

📝 Have more to share? Add more details, code, screenshots, videos, etc. below.

sacred estuary
#

Mostly you can't, because PRB/ECE require real cards set up via the respective wallets

#

In what way is this not working? Do you have an example payment intent ID I can look at?

hidden depot
#

yes, i have a look

#

pi_3PxT5JBt3uYWFAo31YVjK¡q7

sacred estuary
#

that 3rd to last character looks invalid, should that be an i?

hidden depot
#

yes

#

sorry, got only a screenshot from our customer

sacred estuary
#

Ok yes I see it now

#

It looks like you're confirming via Stripe.js and it requires action

hidden depot
#

pi_3PxT5JBt3uYWFA031YVjKiq7

sacred estuary
#

So what happens client side?

hidden depot
#

hope this is better

#

nothing, it submits the form

#

for me its hard to debug, because we only have it in production environment and all of our customers removed payment buttons from their checkout

sacred estuary
#

Can you share your code for the prb complete event handler?

hidden depot
#

then(function (confirmResult) {
if (confirmResult.error) {
ev.complete('fail');
sendMessage("stripeButtonsError", confirmResult);
} else {
ev.complete('success');
if (confirmResult.paymentIntent.status === 'requires_action') {
// Let Stripe.js handle the rest of the payment flow.
stripe.confirmCardPayment(owner.clientSecret).then(function (result) {
if (result.error) {
sendMessage("stripeButtonsError", result);
} else {
sendMessage("stripeButtonsSuccess", result);
}
});
} else {
sendMessage("stripeButtonsSuccess", confirmResult);
}
}
});

#

i just copied your docs

#

and it worked

#

i'll be afk for 5 minutes

west hullBOT
pliant hull
#

Hello
I'm taking over from synthrider, let me know if there's anything else we can help with

hidden depot
#

i'm back

#

do you have any idea, how to debug 3DS on payment request buttons?

pliant hull
#

What part though? You seem to be handling it correctly by calling confirmCardPayment on the PaymentIntent.

hidden depot
#

okay, this should open the dialoque to the customer?

pliant hull
#

Yup

#

Unless there are any errors

hidden depot
#

does the dialog needs anything in js or html?

#

okay, got it

#

so we are here in this part

#

stripe.confirmCardPayment(owner.clientSecret).then(function (result) {
if (result.error) {
sendMessage("stripeButtonsError", result);
} else {
sendMessage("stripeButtonsSuccess", result);
}
});

#

and I can't accidentally submit in this case?

#

sendMessage will submit the form

pliant hull
#

and I can't accidentally submit in this case?
what do you mean by that?

Can you share the complete code?

hidden depot
#

i'll have a look

#

I mostly copied anything from documentation to have it clear in case of errors

pliant hull
#

Gotcha thanks