INVALID_RESOURCE_ID when click on the paypal buttons

aymerica12
Contributor
Contributor

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.

aymerica12_0-1662727508011.png

after that, I have included the script link with my client id.

 

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.
 
aymerica12_1-1662727826742.png

 

What I am doing wrong ? 

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.