paypal button
<div id=”smart-button-container”> <div style=”text-align: center;”> <div id=”paypal-button-container”></div> </div> </div> <script src=”https://www.paypal.com/sdk/js?client-id=AQ0xbd17TcPkaT0t1ZZ_17vmNC_3PbsAY_1pW9GtXt9SxEa1x_HHHxlud920OY3ZDh4xKx08-p_Iwzm2&enable-funding=venmo¤cy=USD” data-sdk-integration-source=”button-factory”></script> <script> function initPayPalButton() { paypal.Buttons({ style: { shape: ‘rect’, color: ‘gold’, layout: ‘vertical’, label: ‘paypal’, }, createOrder: function(data, actions) { return actions.order.create({ purchase_units: [{“amount”:{“currency_code”:”USD”,”value”:1}}] }); }, onApprove: function(data, actions) { return actions.order.capture().then(function(orderData) { // Full available details console.log(‘Capture result’, orderData, JSON.stringify(orderData, null, 2));