in

AlertPay Developers Community

Introducing Multi-Item Checkout

Last post 05-13-2009 10:13 AM by AlertPay_Niel. 1 replies.
Page 1 of 1 (2 items)
Sort Posts: Previous Next
  • 05-13-2009 9:53 AM

    Introducing Multi-Item Checkout

    AlertPay is proud to announce the release of our newest feature: Multi-Item Checkout.

    Multi-Item Checkout allows you to further integrate your shopping cart by listing all the items a customer is checking out with. This means that along with processing your payments, the Pay Process page will also account for all the items in the cart when the customer checks out.

    Developers can now use the following variables along with the usual ones:

    ap_itemname -- Original variable, can still be used

    ap_itemname_1
    ap_itemname_2
    ap_itemname_3 and so on for multiple items

    *Please note that the index numbers can be anything, and do not have to be in order (they will be displayed in increasing order regardless of missing numbers inbetween). They can be used without the need for the original ap_itemname to be present, but they can also be used in conjunction if necessary.

    we can use the same indexing system for the following variables, to tie them with the corresponding itemname:

    ap_description_[index]
    ap_itemcode_[index]
    ap_amount_[index]
    ap_quantity_[index]

    Using the above, you can easily build buttons that are product packages and sell your items or services as bundles. We are looking forward to incorporating this feature into a more dynamic button that lets the customer choose how they want their products bundled, however this is a feature that is most likely not going to be released until next year.

    Please note that this feature will only start being available as of the next release, scheduled for next week.
  • 05-13-2009 10:13 AM In reply to

    Re: Introducing Multi-Item Checkout

    An example button that uses the above feature follows:

    <form method="post" action="https://www.alertpay.com/PayProcess.aspx" >

    <input type="hidden" name="ap_purchasetype" value="item"/>
    <input type="hidden" name="ap_merchant" value="neil@alertpay.com"/>
    <input type="hidden" name="ap_itemname_1" value="How To Test Multi-Item Checkout"/>
    <input type="hidden" name="ap_itemname_2" value="Another Book of Less Consequence"/>
    <input type="hidden" name="ap_itemname_3" value="This Could Be A Book But I'm Not Sure"/>
    <input type="hidden" name="ap_description_1" value="A concise analysis of the Multi-Item Checkout procedure."/>
    <input type="hidden" name="ap_description_2" value="This book is not as important as the other one."/>
    <input type="hidden" name="ap_description_3" value="It looks like a book....but is it?"/>
    <input type="hidden" name="ap_itemcode_1" value="462"/>
    <input type="hidden" name="ap_itemcode_2" value="2955"/>
    <input type="hidden" name="ap_itemcode_3" value="8943"/>
    <input type="hidden" name="ap_quantity_1" value="1"/>
    <input type="hidden" name="ap_quantity_2" value="5"/>
    <input type="hidden" name="ap_quantity_3" value="2"/>
    <input type="hidden" name="ap_currency" value="USD"/>
    <input type="hidden" name="ap_amount_1" value="135.00"/>
    <input type="hidden" name="ap_amount_2" value="5.00"/>
    <input type="hidden" name="ap_amount_3" value="67.00"/>
    <input type="hidden" name="ap_returnurl" value="http://dev.alertpay.com/forums/p/3350/7260.aspx"/>
    <input type="hidden" name="ap_cancelurl" value="http://dev.alertpay.com/forums/p/3350/7260.aspx"/>
    <input type="image" name="ap_image" src="https://www.alertpay.com//PayNow/26A48DF6D2F949489CF7E6DBDDBF4544a.gif"/>

    </form>

     

Page 1 of 1 (2 items)

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