Is it possible with the Smart Payment Button for Paypal recurring payments to pass additional parameters like an invoice id for example.
paypal.Buttons({
createSubscription: function(data, actions) {
return actions.subscription.create({
'plan_id': 'P-2UF78835G6983425GLSM44AM'
});
},
onApprove: function(data, actions) {
alert('You have successfully created subscription ' + data.subscriptionID);
}
}).render('#paypal-button-container');
This is the example code from https://developer.paypal.com/docs/subscriptions/integrate/#4-create-a-subscription and it says:
- Calls PayPal using actions.subscription.create() to create a subscription for your plan and includes the plan ID, subscriber details, shipping, and other details.
But I can't pass anything besides the plan_id
.