#Vipudvp-Connect
1 messages · Page 1 of 1 (latest)
Hi! Can you share the request ID (req_xxx)? Here's how you can find it: https://support.stripe.com/questions/finding-the-id-for-an-api-request
Find help and support for Stripe. Our support center provides answers on all types of situations, including account information, charges and refunds, and subscriptions information. Get your questions answered and find international support for Stripe.
I having code error,
Not able to create a bank for custom account for
Not able to set account holder for creating bank
Or can you share with the detailed error message?
Yes Actually I not able to request, getting this above error before sending the request
OK, seems like the AccountHolder property is missing in the SessionCreationParam
Learn how to collect your Custom connected account’s bank account and use account data to enhance payouts.
Getting error while setting account holder.
How do you create the session, can you share with the code?
First I have retrieve the account object by passing account id
Then creating bank account sesssion
Instead of type Account, you should pass a string to setAccount()
e.g., setAccount(userStripeAccount.accountId)
Can you copy and paste your code here?
SessionCreateParams params2 = SessionCreateParams
.builder()
.setAccountHolder(
SessionCreateParams.AccountHolder
.builder()
.setType(SessionCreateParams.AccountHolder.Type.ACCOUNT)
.setAccount(userStripeAccount.accountId)
.build()
)
.setFilters(SessionCreateParams.Filters.builder().addCountry("US").build())
.addPermission(SessionCreateParams.Permission.OWNERSHIP)
.addPermission(SessionCreateParams.Permission.PAYMENT_METHOD)
.build();
Session session = Session.create(params2);
Map<String, Object> responseData = new HashMap<>();
responseData.put("checkoutSessionId", session.getId());
//return gson.toJson(responseData);
render (responseData as JSON)
Can you confirm if userStripeAccount.accountId returns a string?
Yes @sweet coyote
Its giving me exception at this point.SessionCreateParams.AccountHolder
I'm not familiar with Groovy, but it seems like you are mixing Groovy code with Java code.
But groovy allowing me to use java code,
I have used lots of services of stripe
Like
Create coupouns, promotion codes and onetimepayment and subscription payment
Is the code highlighted in red causing syntax error?
No, Its due to break point applied at that point
Ok. I'd suggest you to break down your code
In What way..??
AccountHolder accountHolder = SessionCreateParams.AccountHolder
.builder()
.setType(SessionCreateParams.AccountHolder.Type.ACCOUNT)
.setAccount(userStripeAccount.accountId)
.build()
Do this and see if you can successfully create the accountHolder
Just taking over here, let me catch-up
Sure @void prawn
What's the actually error? Looks like it's beneath the page break in your screenshot
Which version of stripe-java are you using?
The Financial Connections stuff is pretty new: https://github.com/stripe/stripe-java/blob/master/CHANGELOG.md#201210---2022-05-19
Was only released in 20.121.0
latest --20.125.0
Wait, you're using the Checkout class?
Yes
It's not Checkout, but the financialConnections class
You're creating a Financial Connections Session. See: https://stripe.com/docs/api/financial_connections/sessions/create?lang=java
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
@pastel raft Did that resolve it?
checking
In what version I will find financialConnections
I not getting here in list while import
It was added in 20.121.0: https://github.com/stripe/stripe-java/blob/master/CHANGELOG.md#201210---2022-05-19
Actually, earlier: https://github.com/stripe/stripe-java/blob/master/CHANGELOG.md#201180---2022-05-05
I able to generate a session of financial services
Now How can I redirect to dashboard of stripe to add bank details
I not able to get the id from the session object
Sincere apologies for the delay, I'm jumping in as my teammate needed to step away and am working on getting caught up.
So,
I have we generate a session a session for create bank for custom account
But I not abe to redirect
I get the session and pass to stripe.redirectToCheckout
Do you mind if we take a step back for a second, I'm trying to understand what you're trying to accomplish.
You're trying to use Financial Connections to establish a connection to the bank account for your Custom connected account?
Correct
Gotcha, let me take a closer look at the flow for that.
Now I able to create a account I need to client secret to add the bank,
I was passing session id
Ah gotcha, glad to hear you figured it out.