<p>&lt;div id="smart-button-container"&gt;</p>
<p>      &lt;div style="text-align: center;"&gt;</p>
<p>        &lt;div id="paypal-button-container"&gt;&lt;/div&gt;</p>
<p>      &lt;/div&gt;</p>
<p>    &lt;/div&gt;</p>
<p>  &lt;script src="https://www.paypal.com/sdk/js?client-id=sb&amp;currency=USD" data-sdk-integration-source="button-factory"&gt;&lt;/script&gt;</p>
<p>  &lt;script&gt;</p>
<p>    function initPayPalButton() {</p>
<p>      paypal.Buttons({</p>
<p>        style: {</p>
<p>          shape: 'pill',</p>
<p>          color: 'white',</p>
<p>          layout: 'vertical',</p>
<p>          label: 'checkout',</p>
<p>          </p>
<p>        },</p>
<p> </p>
<p>        createOrder: function(data, actions) {</p>
<p>          return actions.order.create({</p>
<p>            purchase_units: [{"description":"One Side Pzaz vinyl wrap +3 colour cut logo\nOne Side Colour Print\nUV Coating\nProfile Page (Login After CheckOut)","amount":{"currency_code":"USD","value":104,"breakdown":{"item_total":{"currency_code":"USD","value":98},"shipping":{"currency_code":"USD","value":6},"tax_total":{"currency_code":"USD","value":0}}}}]</p>
<p>          });</p>
<p>        },</p>
<p> </p>
<p>        onApprove: function(data, actions) {</p>
<p>          return actions.order.capture().then(function(details) {</p>
<p>            alert('Transaction completed by ' + details.payer.name.given_name + '!');</p>
<p>          });</p>
<p>        },</p>
<p> </p>
<p>        onError: function(err) {</p>
<p>          console.log(err);</p>
<p>        }</p>
<p>      }).render('#paypal-button-container');</p>
<p>    }</p>
<p>    initPayPalButton();</p>
<p>  &lt;/script&gt;</p>