#Kamran-connect-bank-info
1 messages · Page 1 of 1 (latest)
"This API call cannot be made with a publishable API key. Please use a secret API key. You can find a list of your API keys at https://dashboard.stripe.com/account/apikeys."
getting this error when i am doing it on client side..
Correct, this is something that needs to be done server side with your secret key
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?
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..
Right, what call are you making for that last part?
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");
}