
Button Manager NVP API June, 2009 15
Using the Button Manager API
Tracking Inventory for Menu Items Using NVP
...
&BUTTONCODE=HOSTED
&BUTTONTYPE=CART
&L_BUTTONVAR1=item_name=Wireless%20Mouse
&L_BUTTONVAR2=amount=10.50
&L_BUTTONVAR3=no_shipping=1
&L_BUTTONVAR4=currency_code=USD
&L_BUTTONVAR5=no_note=1
&OPTION0NAME=Color
&L_OPTION0SELECT0=Red
&L_OPTION0SELECT1=Blue
&L_OPTION0SELECT2=Green
&L_OPTION0PRICE0=10.00
&L_OPTION0PRICE1=8.00
&L_OPTION0PRICE2=12.00
&OPTION1NAME=Size
&L_OPTION1SELECT0=Small
&L_OPTION1SELECT1=Large
&BUTTONIMAGE=reg
...
The button includes menus that allow you to specify the color and size. Each color is
associated with a specific price. The button variables (L_BUTTONVAR0, and such), enable you
to specify the same HTML variables as you ordinarily do using Website Payments Standard;
for information see
HTML Variables for Website Payments Standard.
Tracking Inventory for Menu Items Using NVP
The example shows the NVP parameters that enable tracking of inventory and profit and loss
for three kinds of product whose option number specifies the position in the drop-down menu
for the option.
Comentários a estes Manuais