#usmseong-prb-setup
1 messages ยท Page 1 of 1 (latest)
Hello! We'll be with you shortly. Below are links to other discussions we've had with you in the past week in case you want to review that information. If your question is related to one of these previous discussions, please provide a comprehensive summary of the current state and what you need help with now. We help many users simultaneously, so a summary allows us to resolve your issue as soon as possible.
- usmseong_29857, 33 minutes ago, 24 messages
- usmseong_29857, 20 hours ago, 4 messages
- usmseong_29857, 1 day ago, 43 messages
- usmseong_29857, 1 day ago, 14 messages
- usmseong_29857, 1 day ago, 7 messages
- usmseong_29857, 2 days ago, 13 messages
and 6 more
Can you copy paste your code here to keep it in the thread?
Copy pasting it here:
if (price > 0) {
const { error: stripePIError, paymentIntent: responsePI } = await stripe.confirmCardPayment(
clientSecret,
{
payment_method: paymentMethod.id,
},
{ handleActions: false },
);
stripeError = stripePIError;
} else {
const { error: stripeSIError, setupIntent } = await stripe.confirmSetup({
elements,
clientSecret,
redirect: 'if_required',
confirmParams: {
return_url: window.location.href,
},
});
stripeError = stripeSIError;
}
yes that's my code
Instead of confirmSetup you need to use confirmCardSetup (https://stripe.com/docs/js/setup_intents/confirm_card_setup)
๐ awesome!