flutter_stripe_payment icon indicating copy to clipboard operation
flutter_stripe_payment copied to clipboard

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.

Open VianneySonneville opened this issue 4 years ago • 2 comments
trafficstars

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 ?

VianneySonneville avatar Jul 30 '21 15:07 VianneySonneville

I am experiencing the same problem.

riscait avatar Aug 06 '21 07:08 riscait

Fixed in pull request #328.

riscait avatar Aug 06 '21 07:08 riscait