Reputation: 2694
Currently in PayPal you can dynamically generate PayPal Buttons using the following
Is their a way to add a variable called custom
to the button as It's not documented within the API?
Upvotes: 1
Views: 91
Reputation: 5569
Use L_BUTTONVARn option. Like this :
array(
'L_BUTTONVAR1' => 'custom=price=1.00&customvar=value&othervar=othervalue'
);
It will go directly to custom vars.
Upvotes: 2