Paypal - add multiple item in the cart for checkout
Tech-Today

Paypal - add multiple item in the cart for checkout


I have a requirement to add multiple items in a paypal cart at the same time and here's how I did it.


<form method="post" action="https://www.paypal.com/cgi-bin/webscr" target="paypal">
<input type="hidden" name="cmd" value="_cart">
<input type="hidden" name="upload" value="1">
<input type="hidden" name="business" value="[email protected]">
<input type="hidden" name="currency_code" value="USD">
<input type="hidden" name="return" value="http://www.czetsuya-tech.blogspot.com">

<input type="text" name="item_name_1" value="Macbook Pro">
<input type="hidden" name="item_number_1" value="001">
<input type="hidden" name="amount_1" value="10">
<input type="hidden" name="quantity_1" value="1">

<input type="hidden" name="item_name_2" value="Asus i7">
<input type="hidden" name="item_number_2" value="002">
<input type="hidden" name="amount_2" value="20">
<input type="hidden" name="quantity_2" value="1">

<input type="image" src="http://images.paypal.com/en_US/i/btn/x-click-but22.gif" border="0" name="submit" alt="Make payments with PayPal - it's fast, free and secure!">
</form>


Things you should notice, there are several input tags that have index "_x"
item_name, item_number, amount and quantity.




- How To Upload A File In An Mvc3 C# Ajax Form
It's easy to upload file in a synchronous form, where you just post the file and read a HttpPostedFile variable in the server side: In plain html form, take note of the form enctype property: //the view (index.cshtml) @using (Html.BeginForm("Upload",...

- Add A Jquery Datepicker On Jquery Dialog Box Via Load Method
Recently I've worked on a form that requires a jquery datepicker to be rendered inside jquery's dialog element. Where I encountered several problems like: 1.) datepicker() should be invoke inside dialog 2.) the dialog created (div) should be remove...

- Clear The Values Of Html Input Fields No Cache
There are times when you don't want to show the values previously entered and process of a certain html form. For example on a public PC that is used by anybody, if you type in your email address on any email site like gmail, yahoo you will notice...

- Download A Url File Into Desktop. For Example, Download Image File (gif, Jpg) Using Java And Apache Commons Io Api
To make this code works you need: 1.) http://commons.apache.org/io/download_io.cgi 2.) make sure to configure your build path and include the apache commons io jar (I've used eclipse-java ide) 3.) the url that will be save are stored in the input/input.txt...

- How To Order The Textboxes In An Html Document By Using Html Tag Tabindex
In Visual Studio TabIndex is a property that is accessible in each control, I thought there was no equivalent in plain html. So what I did was to manually captured the control's (example textbox) onblur event. It was working well until I found a bug,...



Tech-Today








.