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

com.stripe.android.exception.InvalidRequestException: Keys for idempotent requests can only be used with the same parameters they were first used with.com.stripe.android.exception.InvalidRequestException: Keys for idempotent requests can only be used with the same parameters they were first used with. #324

Open
VianneySonneville opened this issue Jul 30, 2021 · 2 comments

Comments

@VianneySonneville
Copy link

VianneySonneville commented Jul 30, 2021

mPublicKey has been remove from createTokenWithCard
#311
but not in createTokenWithBankAccount

public void createTokenWithBankAccount(final ReadableMap accountData, final Promise promise) {
  try {
    ArgCheck.nonNull(mStripe);
    ArgCheck.notEmptyString(mPublicKey);

    mStripe.createBankAccountToken(
      createBankAccount(accountData),
      mPublicKey,
      null,
      new ApiResultCallback<Token>() {
          public void onSuccess(Token token) {
            promise.resolve(convertTokenToWritableMap(token));
         }
         public void onError(Exception error) {
           error.printStackTrace();
           promise.reject(toErrorCode(error), error.getMessage());
       }
    });
 } catch (Exception e) {
   promise.reject(toErrorCode(e), e.getMessage());
 }
}

is it possible to fix ?

@riscait
Copy link
Contributor

riscait commented Aug 6, 2021

I am experiencing the same problem.

@riscait
Copy link
Contributor

riscait commented Aug 6, 2021

Fixed in pull request #328.

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

No branches or pull requests

2 participants