We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 15e2dee + 7229725 commit b253d60Copy full SHA for b253d60
core/lib/spree/core/engine.rb
@@ -3,6 +3,9 @@
3
module Spree
4
module Core
5
class Engine < ::Rails::Engine
6
+ CREDIT_CARD_NUMBER_PARAM = /payment.*source.*\.number$/
7
+ CREDIT_CARD_VERIFICATION_VALUE_PARAM = /payment.*source.*\.verification_value$/
8
+
9
isolate_namespace Spree
10
engine_name 'spree'
11
@@ -30,8 +33,8 @@ class Engine < ::Rails::Engine
30
33
app.config.filter_parameters += [
31
34
%r{^password$},
32
35
%r{^password_confirmation$},
- %r{^number$}, # Credit Card number
- %r{^verification_value$} # Credit Card verification value
36
+ CREDIT_CARD_NUMBER_PARAM,
37
+ CREDIT_CARD_VERIFICATION_VALUE_PARAM,
38
]
39
end
40
0 commit comments