Skip to content

Commit

Permalink
Stripe improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
arevi committed Nov 6, 2019
1 parent 94eb4b3 commit 7101636
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 4 deletions.
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "react-autofill",
"version": "1.0.1",
"version": "1.0.2",
"private": true,
"dependencies": {
"react": "^16.11.0",
Expand Down
10 changes: 8 additions & 2 deletions public/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"manifest_version": 2,
"name": "React Autofill",
"author": "Arevi",
"version": "1.0.1",
"version": "1.0.2",
"description": "Automate the filling of checkout forms, increasing your checkout speeds.",
"browser_action": {
"default_popup": "index.html",
Expand All @@ -27,6 +27,8 @@
"https://*/*/checkouts/*",
"https://*.shopifycs.com/*",
"https://js.stripe.com/*",
"https://checkout.stripe.com/m/v3/*",
"https://checkout.stripe.com/pay*",
"https://www.supremenewyork.com/checkout"
]
},
Expand All @@ -40,7 +42,11 @@
"all_frames": true
},
{
"matches": ["https://js.stripe.com/*"],
"matches": [
"https://js.stripe.com/*",
"https://checkout.stripe.com/m/v3/*",
"https://checkout.stripe.com/pay*"
],
"js": ["sites/stripe.js"],
"all_frames": true
},
Expand Down
2 changes: 2 additions & 0 deletions public/sites/stripe.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,9 @@ const fillBilling = profile => {
"[autocomplete='address-level2']": billingDetails.city,
"[autocomplete='address-level1']": billingDetails.state,
"[autocomplete='postal-code']": billingDetails.zipcode,
"[autocomplete='billing postal-code']": billingDetails.zipcode,
"[autocomplete='country-name']": billingDetails.country,
"[autocomplete='ccname']": `${billingDetails.first_name} ${billingDetails.last_name}`,
"[autocomplete='cc-exp-month']": billingDetails.expMonth,
"[autocomplete='cc-exp-year']": billingDetails.expYear
};
Expand Down

0 comments on commit 7101636

Please sign in to comment.