SDK Buttons Not working any longer - Personal Account

Nicoradv
Contributor
Contributor

 

 
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&ti...');
}
}).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

 

Login to Me Too
0 REPLIES 0

Haven't Found your Answer?

It happens. Hit the "Login to Ask the community" button to create a question for the PayPal community.