Sadly, the New Smart Buttons Documentation redirects to a 404. Could the correct Documentation URL be provided so that we can figure out how to integrate the new Smart Buttons and have them auto redirect to a successful payment thank you page. I've tried editing the part on the script for the success: // 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('https://mydomain.com/payment-success'); but no dice. It's not redirecting on either Sandbox or Live. Here's the full script provided (I'm using Sandbox for privacy purposes). The module does work when I replace SB for my Client ID on the URL query. <script src="https://www.paypal.com/sdk/js?client-id=sb&enable-funding=venmo¤cy=USD" data-sdk-integration-source="button-factory"></script> <script> function initPayPalButton() { paypal.Buttons({ style: { shape: 'pill', color: 'silver', layout: 'horizontal', label: 'paypal', }, createOrder: function(data, actions) { return actions.order.create({ purchase_units: [{"description":"Business Startup Package Deposit","amount":{"currency_code":"USD","value":0.5}}] }); }, 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('https://my-domain.com/payment-success'); }); }, onError: function(err) { console.log(err); } }).render('#paypal-button-container'); } initPayPalButton(); </script> Any guidance or answers would be greatly appreciated. Thank you.
... View more