| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -15,7 +15,6 @@ PAYPAL.apps = PAYPAL.apps || {}; | |||
| 15 | 15 | qrCodeURL = 'https://www.paypal.com/webapps/ppint/qrcode?data={url}&pattern={pattern}&height={size}', | |
| 16 | 16 | bnCode = 'JavaScriptButton_{type}', | |
| 17 | 17 | prettyParams = { | |
| 18 | - id: 'hosted_button_id', | ||
| 19 | 18 | name: 'item_name', | |
| 20 | 19 | number: 'item_number', | |
| 21 | 20 | lang: 'lc' | |
@@ -47,7 +46,6 @@ PAYPAL.apps = PAYPAL.apps || {}; | |||
| 47 | 46 | app.buttons = { | |
| 48 | 47 | buynow: 0, | |
| 49 | 48 | cart: 0, | |
| 50 | - hosted: 0, | ||
| 51 | 49 | donate: 0, | |
| 52 | 50 | qr: 0, | |
| 53 | 51 | subscribe: 0 | |
@@ -75,12 +73,8 @@ PAYPAL.apps = PAYPAL.apps || {}; | |||
| 75 | 73 | // Defaults | |
| 76 | 74 | type = type || 'buynow'; | |
| 77 | 75 | ||
| 78 | - // Hosted buttons | ||
| 79 | - if (data.items.hosted_button_id) { | ||
| 80 | - type = 'hosted'; | ||
| 81 | - data.add('cmd', '_s-xclick'); | ||
| 82 | 76 | // Cart buttons | |
| 83 | - } else if (type === 'cart') { | ||
| 77 | + if (type === 'cart') { | ||
| 84 | 78 | data.add('cmd', '_cart'); | |
| 85 | 79 | data.add('add', true); | |
| 86 | 80 | // Donation buttons | |
| Back | FazBrowse Home | New Git URL |
0 commit comments