Skip to content
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

Merged
merged 5 commits into from
Dec 21, 2018

Conversation

kirilsokolov
Copy link
Contributor

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).

retrieveSource should create RequestOptions with stripeAccount if not null same as createSource
StripeApiHandler.retrieveSource(sourceId, clientSecret, apiKey, mStripeAccount);
@kirilsokolov
Copy link
Contributor Author

Hi @ksun-stripe can you have a look at this?

@kirilsokolov
Copy link
Contributor Author

Any chance you can get this merged? @ksun-stripe @joel-stripe

@vlatkogalev
Copy link

Experiencing exactly the same issue. Hopefully, this will get merged soon.

@mshafrir-stripe mshafrir-stripe self-assigned this Dec 18, 2018
Copy link
Contributor Author

@kirilsokolov kirilsokolov left a 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.

@mshafrir-stripe mshafrir-stripe merged commit 744e84a into stripe:master Dec 21, 2018
@kirilsokolov
Copy link
Contributor Author

Thank's a lot for this.
It would make out app development easier.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants