Hi, I have a Paypal smart button and the onApprove javascript callback suddenly stopped to work since about an hour ago. I was testing the subscription function of the website and the callback was working quite well before. It seems that there are some changes on the payment complete window. Previously the payment window automatically closes after finish. But now it is showing a complete page with a big complete tick and I need to manually close it. Below is my code which was working well in the last few days (the alert message could show up before now the msg doesn't show up anymore) paypal.Buttons({ fundingSource: paypal.FUNDING.CARD, style: { layout: 'vertical', size: 'responsive', height:40 }, createSubscription: function(data, actions) { return actions.subscription.create({ 'plan_id': 'XYZ' }); }, onApprove: function(data, actions) { alert('You have successfully created subscription ' + data.subscriptionID); // ...some more codes to send msg to server side }
... View more