#arjun258387_error
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/1283469701225386034
๐ Have more to share? Add more details, code, screenshots, videos, etc. below.
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.
- arjun258387_api, 23 hours ago, 14 messages
- arjun_intent-integration, 1 day ago, 52 messages
Hello
I'm not sure I fully grasp your question.. Can you elborate with what you're seeing when redirected? An example would help
when my payment is completed and i got a order number from payment intent which have payment success status and id whch i uesed as order_no but when i call stripe stripe.cofirmPayment i have not paymentintent so that i doesnot have a order number which is resone of my payment failure so i handle redirect logic manully
const {error:paymentError,paymentIntent} = await stripe.confirmPayment({
elements,
clientSecret: data.clientSecret,
// confirmParams: {
// // Updated return URL with order_id and order_no
// return_url: ${webUrl}/redirect_url?order_id=${orderInsert.order_id},
// },
// Uncomment below if you only want redirect for redirect - based payments
// redirect: "if_required",
});
if (paymentError) {
console.error("Payment confirmation error:", paymentError);
setMessage(paymentError.message);
setIsLoading(false);
window.location.href = `/redirect_url?order_id=${orderInsert.order_id}`;
return;
}
let OrderDetails = paymentIntent;
console.log("๐ ~ handleFormSubmitCard ~ OrderDetails123:", OrderDetails)
const order_no = paymentIntent.id;
if (OrderDetails?.status === "succeeded") {
window.location.href = `/redirect_url?order_id=${orderInsert.order_id}&order_no=${order_no}`;
} else {
navigate(`${webUrl}` + "booking-failure");
}
but component give me error mention below
Error during the payment process: IntegrationError: stripe.confirmPayment(): the confirmParams.return_url argument i
understand or required more details??
I'm not sure I complete understand but based on your code, return_url expects a string value, you're not setting a string
but want to return in this link "/redirect_url?order_id=${orderInsert.order_id}&order_no=${order_no}" after payment successfully completed but i have not order_no boc i got oreder_no from payment intent created after successfully completion of payment proess
Can you share the full error you're getting?
is there a request ID you're seeing?
https://support.stripe.com/questions/finding-the-id-for-an-api-request
during calling of stripe.confirmPayment() i have not order_no boc paymentIntent created after payment successfully completed and i used id of successfully created paymentIntent as a order_no
CheckoutForm.js:600 Error during the payment process: IntegrationError: stripe.confirmPayment(): the confirmParams.return_url argument is required when using automatic payment methods.
at v3:1:392427
at Ko (v3:1:392545)
at v3:1:454442
at e (es6.promise.js:75:1)
at es6.promise.js:92:1
at MutationObserver.t (_microtask.js:18:1)
this is full error msg
I'm sorry, there seems to be a lanaguage barrier and we seem to be talking past each other. You're using terminology which is specific to your application and doesn't really mean anything in Stripe terms.
You can look at the docs here to see what information is returned to the return_url when you confirm the payment intent: https://docs.stripe.com/payments/accept-a-payment?platform=web&ui=elements#web-submit-payment:~:text=Make sure the return_url corresponds to a page on your website that provides the status of the payment. When Stripe redirects the customer to the return_url%2C we provide the following URL query parameters%3A
Aside from that - sorry about this but I'd recommend talking to our support team as they can help you with deeper context in the language that you're more familiar with-
https://support.stripe.com/?contact=true