#kamran-more-connect-questions

1 messages · Page 1 of 1 (latest)

wild glade
#

@mild hinge all API Requests are synchronous today in the stripe-java library

civic hollow
#

account.update(bankParams) seems that it runs in background..

wild glade
#

it doesn't, it's synchronous, all Java calls are synchronous

civic hollow
#

Hibernate: select userbanken0_.id as id1_11_, userbanken0_.bic as bic2_11_, userbanken0_.created_at as created_3_11_, userbanken0_.iban as iban4_11_, userbanken0_.title as title5_11_, userbanken0_.updated_at as updated_6_11_, userbanken0_.user_id as user_id7_11_ from user_bank userbanken0_ where userbanken0_.user_id=?
IBAN ------------>FR1420041010050500013M0260
<com.stripe.model.Account@2115840566 id=acct_1JmfwNRZh4HSerWv> JSON: {

#

these are my logs..

wild glade
#

I don't really follow what that could mean

#

you need to store the returned value

#

we don't update the current variable inline

#

you want Account accountUpdated = account.update(...); I think

civic hollow
#

stipeService.updateBankInfo(user.getStripeAccountId(), dto.getIban());
userBankRepository.saveAndFlush(bank);

#

first i call stripe update then i store in the database.. but from the logs it seems first it save and it stripe update..

wild glade
#

I don't understand what you mean I'm sorry, the code you shared is unrelated to stripe-java, it's your own code

#

but read my example above, try to look at the returned value for the update call and log that