Hello, Can we check my code did work for 2 days and stop working if there a problem with PayPal please tell me , I am trying to hide the PayPal button, when i did its go to wrong url: https://www.paypal.com/checkoutnow? As we can see we need here @latinumcheckout not @checkoutnow? What to do ? Thanks! @PayPalbutton <script> var FUNDING_SOURCES = [paypal.FUNDING.BANCONTACT, paypal.FUNDING.IDEAL]; FUNDING_SOURCES.forEach(function (fundingSource) { var button = paypal.Buttons({ createOrder: function (data, actions) { return actions.order.create({ shipping_type: 'PICKUP', application_context: { shipping_preference: 'NO_SHIPPING' }, purchase_units: [{ amount: { value: '88.44' } }] }); }, onApprove: function(data, actions) { return actions.order.capture().then(function(orderData) { // Successful capture! For demo purposes: console.log('Capture result', orderData, JSON.stringify(orderData, null, 2)); var transaction = orderData.purchase_units[0].payments.captures[0]; alert('Transaction '+ transaction.status + ': ' + transaction.id + '\n\nSee console for all available details'); // Replace the above to 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'); }); }, fundingSource: fundingSource, }).render('#bancontact-button-container'); }); </script>
... View more