Skip to content

Commit 62adc86

Browse files
author
Jeff Harrell
committed
QR code support
1 parent 51d19d8 commit 62adc86

5 files changed

Lines changed: 95 additions & 19 deletions

File tree

README.md

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ Buy Now buttons are for single item purchases.
88
```html
99
<script src="paypal-button.min.js?merchant=YOUR_MERCHANT_ID"
1010
data-button="buynow"
11-
data-name="Buy now!"
11+
data-name="My product"
1212
data-amount="1.00"
1313
></script>
1414
```
@@ -20,11 +20,23 @@ Add To Cart buttons lets users add multiple items to their PayPal cart.
2020
```html
2121
<script src="paypal-button-minicart.min.js?merchant=YOUR_MERCHANT_ID"
2222
data-button="cart"
23-
data-name="Add to cart!"
23+
data-name="Product in your cart"
2424
data-amount="1.00"
2525
></script>
2626
```
2727

28+
### QR Codes
29+
QR codes which can be scanned with a smart phone can also be easily generated.
30+
31+
```html
32+
<script src="paypal-button.min.js?merchant=YOUR_MERCHANT_ID"
33+
data-button="qr"
34+
data-name="Product via QR code"
35+
data-amount="1.00"
36+
></script>
37+
```
38+
39+
2840
## Button variables
2941
All of PayPal's [HTML button variables](https://cms.paypal.com/us/cgi-bin/?cmd=_render-content&content_ID=developer/e_howto_html_Appx_websitestandard_htmlvariables) are supported by prefixing their name with "data-". Here are the most commonly used:
3042

0 commit comments

Comments
 (0)