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
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.