#Kamran-connect-bank-info

1 messages · Page 1 of 1 (latest)

noble pulsar
ashen grove
#

getting this error when i am doing it on client side..

noble pulsar
#

Correct, this is something that needs to be done server side with your secret key

ashen grove
#

so my understand about connect account creation is that on client side we generate token and on server side we create account using token

#

if i want to update bank info , card info that i do server side.. is this right understanding?

noble pulsar
#

I may not be understanding this correctly. What call are you making right now?

ashen grove
#

basically my project requirement creating connect custom account

#

so i have created by generating token on client side and then send it to server to create a connect account..

#

all is fine now..

#

Now i want to update connect account bank info so for that i directly update it on server side..

noble pulsar
#

Right, what call are you making for that last part?

ashen grove
#

server side

#

Map<String, Object> metadata = new HashMap<>();
metadata.put("country", "FR");
metadata.put("currency", "eur");
metadata.put("object", "bank_account");

            if (profile.equals("prod")) {
                metadata.put("account_number", rest.getIban());

            } else {

                metadata.put("account_number", "FR1420041010050500013M02606");
            }