INVALID_RESOURCE_ID when click on the paypal buttons
aymerica12
Contributor
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Posted on
Sep-09-2022
05:51 AM
Hello,
I am currently trying to integrate paypal subscription on my webiste.
I am looking on the paypal tutorial to solve this. I have created a subscriptions plan.
after that, I have included the script link with my client id.
<script src="https://www.paypal.com/sdk/js?client-id=Ac9NdqYWQb3hfaxnD-HhZHw_hDKSKHW9C9DtNf7Yik1edJa34AkQn41PBkhp...">
</script>
And finally, I have added the JS code.
paypal.Buttons({
createSubscription: function(data, actions) {
return actions.subscription.create({
'plan_id': 'P-7SE008634C960405MMMNA4NI' // Creates the subscription
});
},
onApprove: function(data, actions) {
alert('You have successfully created subscription ' + data.subscriptionID); // Optional message given to subscriber
}
}).render('#paypal-button-container'); // Renders the PayPal button
Now, when I click on the paypal button on the website, here is it what is displaying on the console.
What I am doing wrong ?
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
- Need help to integrate Advanced Checkout (PPCP) With WHMCS in PayPal Upgrade Community
- Shipping options are not appearing in my cart through link or button. in PayPal Payments Standard
- System error for my Paypal button after years of correct working in PayPal Payments Standard
- Change the button from Sandbox to Production in PayPal Payments Standard
- Issue with Rendering Trustly Payment Button via PayPal JavaScript SDK in SDKs