Skip to content

Commit 585c7c8

Browse files
committed
Added sample code snippet for Subscribe buttons
1 parent 475fbf6 commit 585c7c8

1 file changed

Lines changed: 14 additions & 0 deletions

File tree

README.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,20 @@ Donation buttons let you accept donations from your users.
4848
></script>
4949
```
5050

51+
### Subscriptions
52+
Subscribe buttons let you set up payment subscriptions.
53+
54+
```html
55+
<script src="paypal-button-minicart.min.js?merchant=YOUR_MERCHANT_ID"
56+
data-button="subscribe"
57+
data-name="My product"
58+
data-amount="1.00"
59+
data-a3="1.00"
60+
data-p3="1"
61+
data-t3="M"
62+
></script>
63+
```
64+
5165

5266
## Button variables
5367
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)