#BilalSaeedAlam
1 messages · Page 1 of 1 (latest)
hey there, what do you need help with?
I am working on future payment with this documentation.
https://stripe.com/docs/payments/save-and-reuse?platform=web&ui=checkout#create-checkout-session
I just want to know that here in the success and cancel URL there is need to pass urls? Could it be possible that we can get success and fail response and handle it in our own way?
const session = await stripe.checkout.sessions.create({
payment_method_types: ["card"],
mode: "setup",
customer: customerId,
success_url:
"https://example.com/success?session_id={CHECKOUT_SESSION_ID}",
cancel_url: "https://example.com/cancel",
});
What do you mean? Those are required in order to redirect the customer back to your page(s) after the session is complete (or they cancel to go back).
Alright i was supposing the same way in ACH future payment method is handling