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

Stripe integration no longer works #352

Open
jbrnd opened this issue Dec 28, 2020 · 1 comment
Open

Stripe integration no longer works #352

jbrnd opened this issue Dec 28, 2020 · 1 comment

Comments

@jbrnd
Copy link

jbrnd commented Dec 28, 2020

It appears that the Stripe payment integration is no longer functional.

After fixing an initial error ("module 'stripe' has no attribute 'CardError'), test payments are still declined by Stripe, coming back with a message

{ "error": { "message": "Sending credit card numbers directly to the Stripe API is generally unsafe. We suggest you use test tokens that map to the test card you are using, see https://stripe.com/docs/testing.", "type": "invalid_request_error" } }

The reason is that Stripe now seems to require tokenization of the CC number, rather than passing the number directly. Some related links:

https://packagist.org/packages/omnipay/stripe
https://stackoverflow.com/questions/46720159/stripe-payment-params-error-type-invalid-request-error
https://groups.google.com/g/mezzanine-users/c/e8bSj0e7KI0/m/rNEaZm1kDAAJ
https://groups.google.com/g/mezzanine-users/c/aN8nZUuM4Oc/m/Mof4rTW0CgAJ
https://stripe.com/docs/payments/accept-a-payment?integration=checkout
https://stripe.com/docs/payments/integration-builder

@jbrnd
Copy link
Author

jbrnd commented Dec 28, 2020

Another useful link, with some code for using the Stripe API with tokenization: https://groups.google.com/g/mezzanine-users/c/N3zRzsTrRu8/m/lIYf_r9DozEJ

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

1 participant