#nishant_api
1 messages ¡ Page 1 of 1 (latest)
đ Welcome to your new thread!
â˛ď¸ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.
âąď¸ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always start a new thread if you have another question.
đ This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1280837832813842467
đ Have more to share? Add more details, code, screenshots, videos, etc. below.
hi! I'm sorry, I'm not sure I follow, can you elaborate/share more context?
I have added a bank account on stripe customer
Before verification that bank account is cancelled.
For add bank account in stripe on any customer - there is two functionality working 1. Payment method & 2. Setup Intent.
Setup is cancelled, we can't use that again but new setup intent i have created & in this setup intent i want to use that old payment method.
How to i can do this can you suggest me
{
"id": "seti_1PvGleHPfDAOjLTFcwminkkX",
"object": "setup_intent",
"application": null,
"automatic_payment_methods": null,
"cancellation_reason": null,
"client_secret": "seti_1PvGleHPfDAOjLTFcwminkkX_secret_QmqS5qduRa4HV8BZsDWxqqXYnI26KVR",
"created": 1725446934,
"customer": "cus_Qmn7SEXXHpcSy3",
"description": null,
"flow_directions": null,
"last_setup_error": null,
"latest_attempt": "setatt_1PvGleHPfDAOjLTFqZPNROkl",
"livemode": false,
"mandate": "mandate_1PvGleHPfDAOjLTFPtSyGOuD",
"metadata": {},
"next_action": null,
"on_behalf_of": null,
"payment_method": "pm_1PvGleHPfDAOjLTFZ5SuCSze",
"payment_method_configuration_details": null,
"payment_method_options": {
"us_bank_account": {
"mandate_options": {},
"verification_method": "automatic"
}
},
"payment_method_types": [
"us_bank_account"
],
"single_use_mandate": null,
"status": "canceled",
"usage": "off_session"
}
- what does "cancelled" mean exactly, what exactly happened?
- do you have an example
pm_xxxPaymentMethod ID where the behaviour you're describing happened, so I can have a look at it?
I see. Well AFAIK no, you can not reuse that PaymentMethod object, it's 'consumed' and the Mandate is inactive. It's better to just recollect the bank details and start from scratch.
you could try calling https://docs.stripe.com/js/setup_intents/confirm_us_bank_account_setup#stripe_confirm_us_bank_account_setup-existing_payment_method using a new SetupIntent ID and the PaymentMethod ID. It might work, I don't know. I think it's safer to build this in a way where you'd just do a new collection + SetupIntent if this cancellation happens.
& one more question.
If i want to check bank account no. & routing no is available on which payment method
Is it possible
the routing number and the last 4digits of the account number(not the whole thing, as it's sensitive info) is available in https://docs.stripe.com/api/payment_methods/object#payment_method_object-us_bank_account
I only just want to know is it possible or not.
The whole account number is not available no
Yes, within only last 4 digit
Great! Hopefully that answers your question then