Curtis
Curtis

Reputation: 2694

Custom variable in dynamic button creation in PayPal

Currently in PayPal you can dynamically generate PayPal Buttons using the following

BMCreateButton

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

Answers (1)

yachaka
yachaka

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

Related Questions