mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-03-09 03:20:21 +00:00
If I regenerate the VCR cassetes for spec/lib/stripe/payment_intent_validator_spec.rb, I get a lot of errors like this: ``` Stripe::CardError: 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. To enable testing raw card data APIs, see https://support.stripe.com/questions/enabling-access-to-raw-card-data-apis. ``` It seems the sandbox environment associated to my developer API keys is not allowed to send raw credit card data. Instead of requesting Stripe support to enable that, or regenerate cassettes with the API keys in Bitwarden, I figured we could migrate the tests to not use raw credit card data.