-
Notifications
You must be signed in to change notification settings - Fork 663
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
iDeal Source with connected account #537
Conversation
retrieveSource should create RequestOptions with stripeAccount if not null same as createSource
StripeApiHandler.retrieveSource(sourceId, clientSecret, apiKey, mStripeAccount);
Hi @ksun-stripe can you have a look at this? |
Any chance you can get this merged? @ksun-stripe @joel-stripe |
Experiencing exactly the same issue. Hopefully, this will get merged soon. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
When I changed this it was an older version of the code.
But I think it is still OK.
I added .setApiVersion(API_VERSION) to if and else part, I hope it should be added on the two places.
Thank's a lot for this. |
When an iDeal source is created it uses the connected account (mStripeAccount) in the RequestOptions (StripeApiHandler:152).
But when you try go get the source status, although connected account is set, it's not used for RequestOptions resulting in exception com.stripe.android.exception.InvalidRequestException: No such source (StripeApiHandler:200).
With this modifications the checkSource passes with or without connected account.
This was not a problem with iOS or PHP version (maybe you can check why it works there).