#Amer Bearat
1 messages · Page 1 of 1 (latest)
Before which step i need to verify the us_bank_account
Hi, that is correct. You'd need to verify the account details on step 2 as you collect the Payment Method. I'd highly recommend that you either use our Setup Intents, https://stripe.com/docs/payments/setup-intents or Save payment details during a payment, https://stripe.com/docs/payments/save-during-payment
Map<String, Object> params = new Map<String, Object>{
'amount' => 10000,
'currency' => 'usd',
'confirm' => true,
'payment_method_data[type]' => 'us_bank_account',
'payment_method_types[]' => 'us_bank_account',
'payment_method_data[billing_details][name]' => 'John Doe',
'payment_method_data[us_bank_account][account_holder_type]' => 'individual',
'payment_method_data[us_bank_account][routing_number]' => '110000000',
'payment_method_data[us_bank_account][account_number]' => '000123456789',
'mandate_data[customer_acceptance][type]' => 'online',
'mandate_data[customer_acceptance][online][ip_address]' => '127.0.0.1',
'mandate_data[customer_acceptance][online][user_agent]' => 'Stripe Checkout'
};
what I need to include to this payload request to Save payment details during a payment
ARe those what i need to add
customer=customer['id'],
setup_future_usage='off_session',
i just tried out and it worked
At a high level, yes.