Problem:
User can not specify the quantity of an item they want to buy. They can only get a quantity of 1 for a given item and you want them to be able to choose.
Solution:
The code below will allow the user the enter a specific quantity, click "Buy Now" button and pay for the total cost.
-----------------------------------------------------------------------------
1- Log into your AlertPay account
2- Click on Business Tools
3- Click on Generate a Buy Now button in the Advanced Integration section
Enter all the required fields. For the quantity you may enter any quantity for now, for instance, 1.
In the button code that is generated after, please change the following line
<input type='hidden' name='ap_quantity' value='1'>
with
<input type="text" name="ap_quantity" value=""/>
Now the customer can enter the quantity they wish to have and when they click on the Buy Now button, a total will be calculated according to that quantity.
-----------------------------------------------------------------------------
Here is a sample code that you can copy/paste in a .html file.
<form method="post" action="https://www.alertpay.com/PayProcess.aspx" >
<input type="hidden" name="ap_purchasetype" value="item-goods"/>
<input type="hidden" name="ap_merchant" value="apdevforum@gmail.com"/>
<input type="hidden" name="ap_itemname" value="Hat"/>
<input type="hidden" name="ap_currency" value="USD"/>
<input type="hidden" name="ap_returnurl" value="http://www.alertpay.com"/>
<input type="hidden" name="ap_itemcode" value="01"/>
<input type="text" name="ap_quantity" value=""/>
<input type="hidden" name="ap_description" value="Example"/>
<input type="hidden" name="ap_amount" value="10.00"/>
<input type="hidden" name="ap_cancelurl" value="http://dev.alertpay.com"/>
<input type="image" name="ap_image" src="https://www.alertpay.com/Images/BuyNow/pay_now_3.gif"/>
</form>