paypal.Buttons({ style: { shape: 'rect', color: 'gold', layout: 'vertical', label: 'subscribe' }, createSubscription: function(data, actions) { return actions.subscription.create({ /* Creates the subscription */ plan_id: 'P-45H01869KW302942UMJILSAY', custom_id: '187', application_context: { shipping_preference: 'NO_SHIPPING' } }); }, onApprove: function(data, actions) { alert('You have successfully created subscription ' + data.subscriptionID); // Optional message given to subscriber location.assign('https://example.com/client/client.php?cmd=search&listype=1&affiliate=0&tire_w=eg+245&tire_r=eg+70&tire_d=eg+16&brand=&model=&newused=Z&sortby=0&cgi_order=0&keywrds=&assoc=187&b=1&bt=1'); } }).render('#paypal-button-container-P-65H03869KW302942UMJILSAY'); // Renders the PayPal button The button has partially quit working. It does create and process the order, but the the onApprove is no longer working. Nor is the custom_id being sent to the webhook (callback). No idea where to turn, PP support has not return a response for my reply to them last ticket
... View more