#mshaban-setup
1 messages · Page 1 of 1 (latest)
Hi! So you are using Checkout Sessions, and you want to save a new payment method to Stripe (without doing any charge now)?
we already do that right now
but we need validate the customer payment method by making refundable transaction during saving the payment method
What do you mean by "validate the customer payment method"? If the Checkout Session worked, the payment method should be already validated.
ok but if we need to create a void transaction (refundable) with a fixed amount (about 1 AED) during the setup session how can we do that?
If you do a Checkout Session in "setup" mode, there will be no charges made. If you want to make a charge and save the payment method at the same time, then you need to use the Checkout Session in "payment" mode and set setup_future_usage https://stripe.com/docs/api/checkout/sessions/create#create_checkout_session-payment_intent_data-setup_future_usage
so there no way to make any charge during checkout Session in "setup" mode ?
Note that technically saving a payment in setup mode could generate a temporary $0 or $1 charge on the customer. More info here: https://support.stripe.com/questions/unexpected-1-charge-on-customers-bank-statement
But other that that, "setup" is only for saving a payment method, not for making a charge.