twenty years of friendship & music
MAY 2022
<script data-sdk-integration-source="button-factory" src="https://www.paypal.com/sdk/js?client-id=AW8LRSYyZR_SJZgwj4xhvM1j82epDg1vd3cVIQ4iPIJEN-bi8ATTq02ExvJIPBmrdugAcVem9Xh0kxYY&enable-funding=venmo&currency=USD"></script> <script> function initPayPalButton() { paypal.Buttons({ style: { shape: 'rect', color: 'black', layout: 'vertical', label: 'paypal', }, createOrder: function(data, actions) { return actions.order.create({ purchase_units: [{"description":"20 Years of Friendship & Music","amount":{"currency_code":"USD","value":20,"breakdown":{"item_total":{"currency_code":"USD","value":15},"shipping":{"currency_code":"USD","value":5},"tax_total":{"currency_code":"USD","value":0}}}}] }) }, onApprove: function(data, actions) { return actions.order.capture().then(function(orderData) { // Full available details console.log('Capture result', orderData, JSON.stringify(orderData, null, 2)) // Show a success message within this page, e.g. const element = document.getElementById('paypal-button-container') element.innerHTML = '' element.innerHTML = '<h3>Thank you for your payment!</h3>' // Or go to another URL: actions.redirect('thank_you.html') }) }, onError: function(err) { console.log(err) } }).render('#paypal-button-container') } initPayPalButton() </script>" data-link-type="EXTERNAL" target="_blank" >