in

AlertPay Developers Community

Buy Now Button Without a Specific Amount

Last post 07-10-2009 6:48 AM by Genix9. 6 replies.
Page 1 of 1 (7 items)
Sort Posts: Previous Next
  • 12-02-2008 10:31 AM

    Buy Now Button Without a Specific Amount

    Problem:

    The Buy Now button is set to a specific amount, you want the user to be able to change the amount to be paid .

     

    Solution:

    The code below will allow the user the enter a specific amount, click "Buy Now" button and pay for the cost.

     

     

    To create one manually, using the regular buy now button and allowing the option to the user to enter the amount.

    -----------------------------------------------------------------------------
    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 amount you may enter any amount for now, for instance, 2.00.


    In the button code that is generated after, please change the following line
    <input type='hidden'  name='ap_amount' value='2.00'>
    with
    <input type='text'  name='ap_amount' value=''>


    Now when the client goes to pay, they will need to enter the amount they wish to pay before they click the buy now button.

    -----------------------------------------------------------------------------

    ***This is a Developers Forum, any other questions should be addressed to our Customer Support department or you can find the answers in our FAQ page.***
    Filed under: , ,
  • 12-02-2008 11:35 AM In reply to

    Re: Buy Now Button Without a Specific Amount

    As an example, we will create a Donate button with the technique mentioned above. If you wish to try it out, just copy/paste the code into 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="Donate"/> 
         <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="hidden" name="ap_quantity" value="1"/> 
         <input type="hidden" name="ap_description" value="Example"/> 
         <input type="text" name="ap_amount" value=""/> 
         <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>  

    -----------------------------------------------------------------------------

    ***This is a Developers Forum, any other questions should be addressed to our Customer Support department or you can find the answers in our FAQ page.***
  • 12-29-2008 2:43 PM In reply to

    Re: Buy Now Button Without a Specific Amount

     Is there a way to do this and get the encrypted-style code so I may put it in a forum signature?

    The forum I wish to use it on does not allow html in the signature.

    All I can think to do is setup the webpage on my webhost, and link to that page. Then have that page set to auto-forward to the donation link.

  • 12-29-2008 4:44 PM In reply to

    Re: Buy Now Button Without a Specific Amount

    There is no encrypted-style code for this at the moment.

    The solution you have proposed is correct. You would have a link in your signature to your own webpage where your Donation button will be located. From their, people may click on your button to make a donation.

    ***This is a Developers Forum, any other questions should be addressed to our Customer Support department or you can find the answers in our FAQ page.***
  • 12-29-2008 8:10 PM In reply to

    Re: Buy Now Button Without a Specific Amount

    The easiest thing to do would be to simply have a checkbox on the create buy button page that says "Let Customer Input Price", which when checked would gray out the pay value. Or just have a "create Donation Button" place.

    lol.

  • 01-02-2009 10:45 AM In reply to

    Re: Buy Now Button Without a Specific Amount

    The solutions outlined in this thread are temporary solutions while we are implementing the donation button. We will soon be releasing the donation button, but in the meanwhile, we are providing temporary methods to sustain and satisfy our client demands. Know that the requests you have made are already features we are working on implementing very soon.

  • 07-10-2009 6:48 AM In reply to

    • Genix9
    • Not Ranked
    • Joined on 07-10-2009
    • Posts 1

    Re: Buy Now Button Without a Specific Amount

    Hi,

    Has there been any progress made on the donate button yet? I see it's been on the cards for quite some time, but nothing seems available from the main site.

Page 1 of 1 (7 items)

  AlertPay - Verified by Visa AlertPay - secure credit card and checking services BBBOnline Reliability Program