#amraneze-bank

1 messages · Page 1 of 1 (latest)

bleak maple
stoic merlin
#

req_GnCDF8B4GBVxch

#

API version: 2020-08-27

bleak maple
#

Thanks! Give me a few minutes to look into this.

stoic merlin
#

Yes, I created a token using Stripe Token API

#

and added that token as a source for a customer

#

but we don't want to charge them, we want to transfer money to those bank accounts

#

when the user wants to withdraw money from stripe

steady slate
#

you can't use ACH on a Canadian Stripe account, really, that's just it. You need to create a Stripe account in the US.

stoic merlin
#

how can I add a bank account to a customer ?

steady slate
stoic merlin
#

But that for using a bank account as payment which is not the case for my application

#

what we want is to setup a bank account in a customer, and when they want to withdraw funds from stripe to their bank account we can use it

steady slate
#

ok

#

so you actually mean Connect then

#

note that customers are people who pay money to you. Connected accounts are what you sue to send money to other parties like the use case you describe.

stoic merlin
#

@steady slate i'm getting now

The provided key 'sk_test_******************' does not have access to account 'cus_******' (or that account does not exist). Application access may have been revoked.

#

For your information, we are only creating customers

steady slate
#

yes, you are quite lost on how Connect works

stoic merlin
#

Yes 😦

steady slate
#

you need to read the Connect docs I linked above. You can't do this without first onboarding an account using Connect. That gives you an account object acct_xxx which is what you'd pass to calls like that one that's failing.

#

a cus_xxx Customer is completely different. It's important to understand that distinction I made above between Customer and Connected accounts.

stoic merlin
#

Ok, I understand what you meant

#

I will try to read

#

but I will ahve an issue

#

the users can be customers and clients

#

so we need to create for each a customer for paying with credit card

#

and a client (using connect) for saving their bank details

#

is this the right way ?

steady slate
#

yep, that's common

#

usually what you do is you create a Customer on your platform and a connected account. In your own database/system, you link those together as being associated with the same user. They're not directly linked in Stripe's API.

stoic merlin
#

Oh ok

#

Thank you so much