SDK Buttons Not working any longer - Personal Account
Nicoradv
Contributor
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Posted on
Apr-18-2022
09:41 AM
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 |
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.
Related Content
- "System error. Please try again later" when connecting to paypal sandbox account with my android app in Sandbox Environment
- Cannot create developer account from invitation link in Braintree Client-side Integration (JS, iOS, Android SDKs)
- failed to pay with sandbox account in Sandbox Environment
- Unable to issue a refund from our business sandbox account in Sandbox Environment
- PayPal Pay buttons a mysterious process in PayPal Payments Standard