Creating Payment Method or Card Token Results in Stripe Exception: Generally Unsafe #1542
Unanswered
michaeljajou
asked this question in
Q&A
Replies: 1 comment
-
I would recommend checking out: https://github.com/flutter-stripe/flutter_stripe/blob/main/example/lib/screens/others/legacy_token_card_screen.dart |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Describe the bug
Creating a token or payment method fails with a Stripe Exception:
StripeException(error: LocalizedErrorMessage(code: FailureCode.Failed, localizedMessage: There was an unexpected error -- try again in a few seconds, message: Sending credit card numbers directly to the Stripe API is generally unsafe. To continue processing use Stripe.js, the Stripe mobile bindings, or Stripe Elements. For more information, see https://dashboard.stripe.com/account/integration/settings. If you are qualified to handle card data directly, see https://support.stripe.com/questions/enabling-access-to-raw-card-data-apis., stripeErrorCode: , declineCode: null, type: invalid_request_error))
Or by Creating a Token
Beta Was this translation helpful? Give feedback.
All reactions