Stop passing credit card info to the server in core #4589
Replies: 2 comments
-
Thank you. This is way overdue and also a great opportunity to refactor the payment source in something that is not a credit card. A |
Beta Was this translation helpful? Give feedback.
-
@kennyadsl How are you doing this now? I have the |
Beta Was this translation helpful? Give feedback.
-
Passing credit cards information (
number
,expiry
,cvv
, etc) to the server is not a good practice unless your store is PCI compliant.Modern payment methods like Braintree or Stripe do not require this to happen. Click to see more. 💳
This is how they handle payments:
That said, we'd like to explore removing any reference of this way of making payments, if your store is PCI compliant it would not be hard to reimplement a form and add the JS library that you prefer to reimplement this.
Proposed Solution
I'd love to keep having the solidus sandbox/demo with a credit card payment method which we would not have If we just deprecate/remove the related code.
This is the path that I'd like to implement:
solidus_stripe
in order to be able to add Stripe as a payment method in sample data if that gem is included in the bundle. ✅with Allow creating seeds with the install command solidus_stripe#6solidus_stripe
to the sandbox & remove seeds for bogus credit card payment methodAdditional context
Also, we are having flaky specs around adding credit cards information filled by Capybara, in combination with a JS plugin (payments.js) that we use to format credit card information correctly when you type them. That PR is a dirty fix that works but raised some concerns in the Core Team since we are wasting time fixing this kind of problem around a feature that is never used in production, since gateways provide their own JS library to do the same. This should be a concern of the store itself, or the extension of that specic gateway at least.
Beta Was this translation helpful? Give feedback.
All reactions