Paypal IPN transaction # and Cart transaction #

Discussion in 'PHP' started by PinoyIto, Jun 4, 2008.

  1. #1
    I am having problem with my IPN script regarding the paypal transaction number. I am using paypal cart, I guess paypal forwarding paypal cart transaction number to my script while the customer receive paypal transaction number. I am having problem with this in my script because they two numbers are different and for my customer to get the item he/she purchased she/he must enter the paypal transaction id the problem is that the transaction ID recorded by my ipn script is not much to the number entered by my customer. I have check this in my paypal account and noticed that the cart number and Paypal transaction number is different. How can I get both number recorded by my IPN script , which variable holds the paypal transaction number and what is the variable for the paypal cart transaction number.

    I will appreciate any lights
     
    PinoyIto, Jun 4, 2008 IP
  2. Christian Little

    Christian Little Peon

    Messages:
    1,753
    Likes Received:
    80
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Try looking at this page, it lists all the variables that Paypal passes back to your site during the IPN process: https://www.paypal.com/IntegrationCenter/ic_ipn-pdt-variable-reference.html

    From what you are describing, I would guess you want one of these variables:

    Without seeing your code I'm betting that you want the txn_id but your script is currently grabbing the auth_id.
     
    Christian Little, Jun 4, 2008 IP