Need help on paypal API with asp.net

Discussion in 'C#' started by bunbunx2, Nov 6, 2008.

  1. #1
    Currently,I can proceed transactions with my asp.net and paypal using sanbox testing.

    But how do I send item details to paypal and so the customer knows what he bought from my site in paypal?Paypal gives sample codes that are too static like item1 and item2 as a NVP in the codes.What if the customer adds more items,how does it send the value over and requests it?

    Help is much appreaciated
     
    bunbunx2, Nov 6, 2008 IP
  2. islandhopper8

    islandhopper8 Active Member

    Messages:
    100
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    73
    #2
    I have created the following solution for my website www.atlantisring.com where I made a shopping cart and store all the items in a database. When the customer is ready to order, i am sending the order number and the total for the order over to paypal and when the order is finished paypal will send me back the order number and I look it up in the database and set the order as paid with all the information. It dont know if this can work for you, but it is working for me.
     
    islandhopper8, Nov 11, 2008 IP
  3. jandus08

    jandus08 Guest

    Messages:
    4
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    you can send any number of items by
    <input type='hidden' name='item_x' value='itemname'>
    <input type='hidden name='amount_x' value='amount'>
    here x value is increment by one
     
    jandus08, Nov 25, 2008 IP
  4. bunbunx2

    bunbunx2 Peon

    Messages:
    613
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    0
    #4
    thanks for the help guys!
     
    bunbunx2, Nov 27, 2008 IP