Blog

To allow the customer to put in their own price, you can use the following snippet of HTML code. Just paste the code below onto your web site where you would like the form to appear. (see note below)

Please note that the Pass Through Product Parameters have already been implemented in this example.

<form action="https://www.2checkout.com/checkout/purchase" method="post">
<input type="hidden" name="sid" value="XXXXXXX">
<input type="hidden" name="mode" value="2CO">
<input type="hidden" name="li_1_type" value="product">
<input type="hidden" name="li_1_name" value="XXXXXXX">
<input type="hidden" name="li_1_quantity" value="1">
<input type="hidden" name="li_1_tangible" value="N">
<input type="hidden" name="li_1_description" value="XXXXXX">
<input type="hidden" name="li_1_product_id" value="XXXXXX">
Please Enter The Amount You Would Like To Submit $ <input type="text" name="li_1_price" value="5.00">
<input type="submit">
</form>

Important note: Be sure to replace the value for sid with your numerical Seller ID number. The values for the li_0_name, li_0_description and li_0_product_id should be changed to reflect your product details. The “Please enter the amount you would like to submit $” text can also be changed at your discretion.

Publicado en Basic Integration

Etiquetado , , ,