#deadshot-embedded-checkout-multi-PM
1 messages · Page 1 of 1 (latest)
I want to create subscription using ACH Direct Debit and a preauth hold on payment using credit card
I need this for my apartment reservations, since pre auth holds can only occur on credit cards, I have to collect another payment method
Gotcha. Unfortunately, you'd need to collect both separately. We don't support collecting multiple PaymentMethods at the same time
The problem is I am using embedded checkout form on my website and I already have setup form for future payments setup using ACH, after user completes the ACH, it redirects to the return url. It should be is a stepwise. The next step is to collect credit card for preauth.
Can I reset the session and get credit card?
I don't want to collect credit card in return url because it messes with site responsiveness,
there's no way to "reset" a session really. You're basically just creating a new session and adding it to your UI. Since you're using embedded checkout, it will always take you to return URL
have you tried setting redirect_on_completion to if_required?
https://stripe.com/docs/api/checkout/sessions/create#create_checkout_session-redirect_on_completion
deadshot-embedded-checkout-multi-PM
Ok it stops it from going to redirect page, or at least when not required, any way to receive completed event and then proceed user to another checkout session for credit card?
I believe you can always retrieve the checkout session and look at the status
you would also recieve webhook events
on client side?
On client side, when we initialize initEmbeddedCheckout()? and attach listener there?
ah actually, yes
https://stripe.com/docs/payments/checkout/custom-redirect-behavior#redirect-based-payment-methods
onCompleteis called when the Checkout Session completes successfully, or when the checkout.session.completed webhook event is sent.
Ah great, it can work, thank you
NP! 🙂 Happy to help