cancel
Showing results for 
Search instead for 
Did you mean: 

Who Me Too'd this topic

Getting error when createSubscription from smart button

ahowlader06
Contributor
Contributor

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');

Login to Me Too
Who Me Too'd this topic