Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
commerce_stripe-3032908
Manage
Activity
Members
Labels
Plan
Custom issue tracker
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Issue forks
commerce_stripe-3032908
Commits
16aad81a
Commit
16aad81a
authored
12 years ago
by
Jani Palsamäki
Browse files
Options
Downloads
Patches
Plain Diff
Issue
#1836870
by hbochner: "card number shouldn't go to drupal"
Added a comment.
parent
d3237926
No related branches found
Branches containing commit
Tags
7.x-1.0-rc3
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
commerce_stripe.js
+4
-1
4 additions, 1 deletion
commerce_stripe.js
with
4 additions
and
1 deletion
commerce_stripe.js
+
4
−
1
View file @
16aad81a
...
...
@@ -62,7 +62,10 @@
$btnTrigger
=
$
(
'
.form-submit.auth-processing
'
).
eq
(
0
);
var
trigger$
=
$
(
"
<input type='hidden' />
"
).
attr
(
'
name
'
,
$btnTrigger
.
attr
(
'
name
'
)).
attr
(
'
value
'
,
$btnTrigger
.
attr
(
'
value
'
));
form$
.
append
(
trigger$
);
// Remove "name" attributes from Stripe related input elements to
// prevent card data to be sent to Drupal server
// (see https://stripe.com/docs/tutorials/forms)
$
(
'
[id^=edit-commerce-payment-payment-details-credit-card-number]
'
).
removeAttr
(
'
name
'
);
$
(
'
[id^=edit-commerce-payment-payment-details-credit-card-code]
'
).
removeAttr
(
'
name
'
);
$
(
'
[id^=edit-commerce-payment-payment-details-credit-card-exp-month]
'
).
removeAttr
(
'
name
'
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment