#bayorwor-checkout-zero
1 messages · Page 1 of 1 (latest)
@lilac scaffold Not really but kind of. You can use mode: 'setup' for example. Or you can do a mode: 'subscription' with 100% off or a trial. But it's impossible to do mode: 'payment' and $0 amount.
bayorwor-checkout-zero
That feels unrelated to your original ask. Sorry I feel like you have a real question but didn't really ask it?
If you are trying to just collect bank account details for ACH Debit to charge their bank in the future then you want mode: 'setup' and yes it will still do instant verification via FinancialConnections or micro-deposits
Ok
I have a system where I want users to be able to access either use Card or Ach or both. When A user selects both I collect the card details and make an initial one time charges, after success I move the user to a stripe checkout screen and subscribe them to a package which the they should be affected by the one time charges because that has been charged already. But instance where they select ACh only, I charge the one time fee from there and subscribe them after verification
Hello! I'm taking over and catching up...
ok
By both you mean a single customer would use both ACH and card?
Yes
Why would they have both? How would you know which one to use?
This is a sample flow of how the system works
Ah, okay, so you're not using Stripe Checkout at all?
We do but only for ACH
Okay, that information helps me understand things overall. How can I help you move forward?
When a user selects only ach, we redirect the user to checkout screen to complete payment and make subscription.
But when a user select both, we want to charge the onetime fee from card and collect his or her ach through checkout which we do not want to charge the onetime fee again
How possible can we acheive this?
Yep, you would create the Checkout Session with mode set to setup: https://stripe.com/docs/api/checkout/sessions/create#create_checkout_session-mode
No money will be collected, but the payment details provided will be set up for future use.
Well noted with thanks
{
"success": false,
"message": "Mode cannot be setup when using prices."
}
getting this error @pulsar summit
The error is correct, you can't specify a Price when using setup mode. Prices are only used when you want them to pay for something, but you're not having them pay for something, you're only having them set up their payment info for future use.
meaning I should not pass line_items attribute?
Correct.
{
"success": false,
"message": "You can not pass payment_method_options[setup_future_usage] in setup mode."
}
Getting this error again
You can omit that property as well. Setting mode to setup makes Checkout use a Setup Intent instead of a Payment Intent, so setup_future_usage is not required.
Works perfectly, thanks for your kind support