#pripri_api

1 messages ¡ Page 1 of 1 (latest)

lofty vortexBOT
#

👋 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/1285431078672138281

📝 Have more to share? Add more details, code, screenshots, videos, etc. below.

old dock
#

This is how we are setting up our payment method. Perhaps this method does not allow us to retrieve the bank account id?

#

We would love to get some guidance on how we can best delete bank accounts when the payment methods are set like this. For example, should we modify add_mayment_method? Thank you!

late crater
#

A checkout session only creates Payment Method ID (pm_xxx). Could you share the bank account ID (ba_xxx), so that I can check how it is created and how it could be detached/deleted?

old dock
#

Yes definitely! One moment please.

#

Here's an example of the pm ID: pm_1Pt46vDojaBzrajIPMBokTuz

Thanks so much for your help and prompt response!

late crater
#

This is a Payment Method (pm_xxx) and it could only be detached: https://docs.stripe.com/api/payment_methods/detach

Once the payment method is detached, your system can't make payment on this payment method.

when users add the same bank account again via bank login, they can see that it was not deleted (since it still shows that Stripe has access to it)
Where did the user add same bank account? What and how did user see? Could you share the screenshot?

old dock
#

Yes! Here is a screenshot. Basically- right now we use the detach method to delete the bank accounts. But when user delete and re-add the same bank account, it shows that Stripe already has access with message "you're already sharing data from these accounts".

#

I just want to make sure when we say we are "deleting a payment method" from the system, we truly are vs. still having it saved in the backend though we don't display that payment method in the UI.

late crater
#

Could you share the Payment Method (pm_xxx) for above screenshot, so that I can double check whether the payment method was detached correctly?

old dock
#

It should be the same one that I just sent you earlier: pm_1Pt46vDojaBzrajIPMBokTuz

late crater
#

Thanks for sharing! I could see that the Payment Method was detached a few minutes ago after refreshing the page.

For US bank account using Financial Connection, the Financial Connection Account should be disconnected first (so that the access will be removed) before detaching from the customer (disable using the payment method for future payment)

#

Let me share how this can be done

old dock
#

Okay thank you! And if we do Disconnect Financial Connection -> Detach bank account -> Add the same bank account again , I should not have that message saying that the user is already sharing data?

late crater
#

The steps will be:

  1. Retrieve the Financial Connection Account from Payment Method Retrieval API: https://docs.stripe.com/api/payment_methods/create and the Financial Connection account (fca_xxx) can be found in us_bank_account.financial_connections_account property: https://docs.stripe.com/api/payment_methods/object#payment_method_object-us_bank_account-financial_connections_account
  2. Disconnect Financial Connection Account (fca_xxx) obtained from Step (1): https://docs.stripe.com/financial-connections/disconnections
  3. Detach the payment method (pm_xxx) from the customer: https://docs.stripe.com/api/payment_methods/detach

Use the Disconnect API to unlink customer bank accounts.

#

By disconnecting the financial connection account, the access from Stripe including sharing the data will be disconnected

old dock
#

Perfect! I will take a look at this. Thank you SO much!