FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Removed dead code for deprecated hosted buttons. · gluckspilz1/JavaScriptButtons@1c22c57 · GitHub

Repository navigation

Commit 1c22c57

Browse files
committed
Removed dead code for deprecated hosted buttons.
1 parent 3dc017d commit 1c22c57

3 files changed

Lines changed: 5 additions & 11 deletions

File tree

‎dist/paypal-button-minicart.min.js‎

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎dist/paypal-button.min.js‎

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎src/paypal-button.js‎

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ PAYPAL.apps = PAYPAL.apps || {};
1515
qrCodeURL = 'https://www.paypal.com/webapps/ppint/qrcode?data={url}&pattern={pattern}&height={size}',
1616
bnCode = 'JavaScriptButton_{type}',
1717
prettyParams = {
18-
id: 'hosted_button_id',
1918
name: 'item_name',
2019
number: 'item_number',
2120
lang: 'lc'
@@ -47,7 +46,6 @@ PAYPAL.apps = PAYPAL.apps || {};
4746
app.buttons = {
4847
buynow: 0,
4948
cart: 0,
50-
hosted: 0,
5149
donate: 0,
5250
qr: 0,
5351
subscribe: 0
@@ -75,12 +73,8 @@ PAYPAL.apps = PAYPAL.apps || {};
7573
// Defaults
7674
type = type || 'buynow';
7775

78-
// Hosted buttons
79-
if (data.items.hosted_button_id) {
80-
type = 'hosted';
81-
data.add('cmd', '_s-xclick');
8276
// Cart buttons
83-
} else if (type === 'cart') {
77+
if (type === 'cart') {
8478
data.add('cmd', '_cart');
8579
data.add('add', true);
8680
// Donation buttons

0 commit comments

Comments
 (0)

Back | FazBrowse Home | New Git URL