Customize your button

  1. Click Customize & Preview to get a lightbox where you can customize your button code with your merchant ID, product name, price and other options.
  2. Click Preview in the lightbox to see a preview of your newly created button.
  3. Click on the button to test it out.

Buy Now buttons are perfect for single item purchases Customize & Preview

<script src="paypal-button.min.js?merchant=YOUR_MERCHANT_ID"
                        data-button="buynow"
                        data-name="My product"
                        data-amount="1.00"
                        async
                    ></script>
                    

Add To Cart buttons let users add multiple items instantly giving your website a cart Customize & Preview

<script src="paypal-button.min.js?merchant=YOUR_MERCHANT_ID"
                        data-button="cart"
                        data-name="Product in your cart"
                        data-amount="1.00"
                        async
                    ></script>
                    

Subscribe buttons can be used to set up payment subscriptions with your users Customize & Preview

<script src="paypal-button.min.js?merchant=YOUR_MERCHANT_ID"
                        data-button="subscribe"
                        data-name="My product"
                        data-amount="1.00"
                        data-recurrence="1"
                        data-period="M"
                        async
                    ></script>
                    

QR codes are ideal for allowing quick mobile payments Customize & Preview

<script src="paypal-button.min.js?merchant=YOUR_MERCHANT_ID"
                        data-button="qr"
                        data-name="Product via QR code"
                        data-amount="1.00"
                        data-size="250"
                        async
                    ></script>
                    

Important: Unless you enable the sandbox environment, all payments made using this code will be live and not test payments.