Skip to content

Commit 84dcaca

Browse files
committed
Updating README for donations
1 parent b5f6acd commit 84dcaca

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

README.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ Buy Now buttons are for single item purchases.
1515
></script>
1616
```
1717

18-
1918
### Add To Cart
2019
Add To Cart buttons lets users add multiple items to their PayPal cart.
2120

@@ -38,6 +37,17 @@ QR codes which can be scanned with a smart phone can also be easily generated.
3837
></script>
3938
```
4039

40+
### Donations
41+
Donation buttons lets you accept donations from your users.
42+
43+
```html
44+
<script src="paypal-button-minicart.min.js?merchant=YOUR_MERCHANT_ID"
45+
data-button="donate"
46+
data-name="My donation"
47+
data-amount="1.00"
48+
></script>
49+
```
50+
4151

4252
## Button variables
4353
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:

0 commit comments

Comments
 (0)