Paypal transaction id

Discussion in 'PHP' started by computerzworld, Mar 29, 2009.

  1. #1
    Hello,
    I am using paypal as my payment option. I am currently testing payment using sandbox. After completing payment when I return back to my site how can I get transaction id?

    And here are the hidden field values that I am passing during checkout...

    <input type="hidden" name="cmd" value="_xclick">
    <input type="hidden" name="amount" value="<?php echo $amount;?>" />
    <input type="hidden" name="currency_code" value="<?php echo $curr_code?>" />
    <input type="hidden" name="business" value="al@b.com">
    <input type="hidden" name="item_name" value="Test">
    <input type="hidden" name="no_shipping" value="1">
    <input type="hidden" name="return" value="http://localhost/new/success.php">
    <input type="hidden" name="rm" value="2" />

    But I am not getting it back in success page when returning from paypal. What I should required in order to get transaction id? Please help me. Thanks in advance...
     
    computerzworld, Mar 29, 2009 IP
  2. bartolay13

    bartolay13 Active Member

    Messages:
    735
    Likes Received:
    14
    Best Answers:
    1
    Trophy Points:
    98
    #2
    I think theres an option in paypal that let you choose if you want to redirect back your parameters with the transaction account.
     
    bartolay13, Mar 30, 2009 IP
  3. jestep

    jestep Prominent Member

    Messages:
    3,659
    Likes Received:
    215
    Best Answers:
    19
    Trophy Points:
    330
    #3
    What integration are you using, IPN, Express, etc...?
     
    jestep, Mar 30, 2009 IP
  4. technomassage

    technomassage Peon

    Messages:
    48
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Hello

    Can you paste your php code here so I can guide you accordingly
     
    technomassage, Mar 30, 2009 IP