flutter_stripe_payment
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.
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 ?
I am experiencing the same problem.
Fixed in pull request #328.