cancel
Showing results for 
Search instead for 
Did you mean: 

Getting error when createSubscription from smart button

Highlighted
Contributor

Getting error when createSubscription from smart button

Hello I'm Getting error when create Subscription from smart button .The error is resource not found. I have created billing plan correctly and state is active.
placed correct plan id but getting the  error.

my code is :

paypal.Buttons({

createSubscription: function (data, actions) {

return actions.subscription.create({
plan_id: "P-37C52757BH329635U3NDCATY"
});
},
onApprove: function (data, actions) {

alert('You have successfully created subscription ' + data.subscriptionID);
}


}).render('#paypal-button-container');