| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 9a963de commit 7e27cab
7 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -68,10 +68,13 @@ All of PayPal's [HTML button variables](https://cms.paypal.com/us/cgi-bin/?cmd=_ | |||
| 68 | 68 | * `data-name` Description of the item. | |
| 69 | 69 | * `data-number` The number of the item. | |
| 70 | 70 | * `data-amount` The price of the item. | |
| 71 | + * `data-currency` The currency of the item (note: these cannot be mixed). | ||
| 71 | 72 | * `data-quantity` Quantity of items to purchase. | |
| 72 | 73 | * `data-shipping` The cost of shipping this item. | |
| 73 | 74 | * `data-tax` Transaction-based tax override variable. | |
| 74 | 75 | * `data-size` For button images: `small` and `large` work. For QR codes enter the pixel length of the longest side. | |
| 76 | + * `data-locale` The desired locale of the PayPal site. | ||
| 77 | + | ||
| 75 | 78 | ||
| 76 | 79 | ## Editable fields | |
| 77 | 80 | Creating editable fields is easy! Just add `-editable` to the name of your variable, e.g. `data-quantity-editable`, and an input field will magically appear for your users. | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1756,7 +1756,8 @@ PAYPAL.apps = PAYPAL.apps || {}; | |||
| 1756 | 1756 | prettyParams = { | |
| 1757 | 1757 | name: 'item_name', | |
| 1758 | 1758 | number: 'item_number', | |
| 1759 | - lang: 'lc', | ||
| 1759 | + locale: 'lc', | ||
| 1760 | + currency: 'currency_code', | ||
| 1760 | 1761 | recurrence: 'p3', | |
| 1761 | 1762 | period: 't3' | |
| 1762 | 1763 | }, | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -23,7 +23,8 @@ PAYPAL.apps = PAYPAL.apps || {}; | |||
| 23 | 23 | prettyParams = { | |
| 24 | 24 | name: 'item_name', | |
| 25 | 25 | number: 'item_number', | |
| 26 | - lang: 'lc', | ||
| 26 | + locale: 'lc', | ||
| 27 | + currency: 'currency_code', | ||
| 27 | 28 | recurrence: 'p3', | |
| 28 | 29 | period: 't3' | |
| 29 | 30 | }, | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -17,7 +17,8 @@ PAYPAL.apps = PAYPAL.apps || {}; | |||
| 17 | 17 | prettyParams = { | |
| 18 | 18 | name: 'item_name', | |
| 19 | 19 | number: 'item_number', | |
| 20 | - lang: 'lc', | ||
| 20 | + locale: 'lc', | ||
| 21 | + currency: 'currency_code', | ||
| 21 | 22 | recurrence: 'p3', | |
| 22 | 23 | period: 't3' | |
| 23 | 24 | }, | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -31,7 +31,7 @@ <h2>Buy Now (Spanish)</h2> | |||
| 31 | 31 | data-button="buynow" | |
| 32 | 32 | data-name="Buy now!" | |
| 33 | 33 | data-amount="1.00" | |
| 34 | - data-lang="es_ES" | ||
| 34 | + data-locale="es_ES" | ||
| 35 | 35 | data-currency_code="EUR" | |
| 36 | 36 | ></script> | |
| 37 | 37 | </div> | |
@@ -42,7 +42,7 @@ <h2>Buy Now (French)</h2> | |||
| 42 | 42 | data-button="buynow" | |
| 43 | 43 | data-name="Buy now!" | |
| 44 | 44 | data-amount="1.00" | |
| 45 | - data-lang="fr_FR" | ||
| 45 | + data-locale="fr_FR" | ||
| 46 | 46 | data-currency_code="EUR" | |
| 47 | 47 | ></script> | |
| 48 | 48 | </div> | |
@@ -53,7 +53,7 @@ <h2>Buy Now (German)</h2> | |||
| 53 | 53 | data-button="buynow" | |
| 54 | 54 | data-name="Buy now!" | |
| 55 | 55 | data-amount="1.00" | |
| 56 | - data-lang="de_DE" | ||
| 56 | + data-locale="de_DE" | ||
| 57 | 57 | data-currency_code="EUR" | |
| 58 | 58 | ></script> | |
| 59 | 59 | </div> | |
@@ -65,7 +65,7 @@ <h2>Buy Now (Editable)</h2> | |||
| 65 | 65 | data-name-editable="Buy now!" | |
| 66 | 66 | data-amount="1.00" | |
| 67 | 67 | data-quantity-editable="1" | |
| 68 | - data-lang="en_US" | ||
| 68 | + data-locale="en_US" | ||
| 69 | 69 | ></script> | |
| 70 | 70 | </div> | |
| 71 | 71 | ||
| Back | FazBrowse Home | New Git URL |
0 commit comments