Symptom: When you send a payment to Stripe you get the following error:
“Payment failed with the following reason: Sending credit card numbers directly to the Stripe API is generally unsafe…”
Solution: Login to your Stripe account and go to Business settings | Integrations | Advanced Settings. Enable Process payments unsafely.
Stripe has recently made some changes to their API wherein you have to enable the above setting when you send credit card numbers to their API. Given that the information is coming from Salesforce, we consider our integration secure and compliant. More information about Salesforce’s PCI compliance here.
Furthermore, you may also want to enable tokenization so that in future charges, you don’t have to send the credit card numbers, instead send the token. More information here.