Integrating Paypal with PHP! Help needed

Discussion in 'PHP' started by X P S, Sep 23, 2009.

  1. #1
    Hi people,

    The paypal generated code is:

    The different categories shown in the history of 'My Account' tab are :

    Date | Type | Name/Email | Payment Status | Details | Order Status/Actions | Net Amount

    Now I want to edit the above code so that when someone sends the payment from my website, its clearly shown in the history of paypal account that from where the payment is coming. By default i am viewing 'Payment From' in 'type' category and email of the sender in 'Name/Email' Category. I want that 'Salary For System' is to be shown in 'type' or 'Name/Email' Category whenever the payment is made from this particular site. So that it will be easier for me to recognise the payments from this particular site rather than viewing each payment's details.
    The second thing i want is that the page should return to the 'thankyou' webpage after the pament is made.

    Kindly solve these problems, i'll be vary very thankful to yuo.

    Regards
    XPS
     
    X P S, Sep 23, 2009 IP
  2. bogi

    bogi Well-Known Member

    Messages:
    482
    Likes Received:
    16
    Best Answers:
    2
    Trophy Points:
    140
    #2
    To redirect the buyer to your thank you page use :

    <input type="hidden" name="return" value="YOUR_RETURN_URL" />
    Code (markup):
    in your form.

    You can also use the cancel_url to redirect the visitor to another page once s/he cancels the apyment:

    <input type="hidden" name="cancel_return" value="YOUR_CANCEL_URL" />
    Code (markup):
    I don't think there is a way to change the name/email or the type...
     
    bogi, Sep 24, 2009 IP
  3. dweebsonduty

    dweebsonduty Active Member

    Messages:
    131
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    71
    Digital Goods:
    1
    #3
    dweebsonduty, Sep 24, 2009 IP
  4. bogi

    bogi Well-Known Member

    Messages:
    482
    Likes Received:
    16
    Best Answers:
    2
    Trophy Points:
    140
    #4
    But I don't think the custom value will show up in his history...
     
    bogi, Sep 25, 2009 IP
  5. dweebsonduty

    dweebsonduty Active Member

    Messages:
    131
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    71
    Digital Goods:
    1
    #5
    You could always change the name dynamically.
     
    dweebsonduty, Sep 25, 2009 IP
  6. bogi

    bogi Well-Known Member

    Messages:
    482
    Likes Received:
    16
    Best Answers:
    2
    Trophy Points:
    140
    #6
    What name can you change?
     
    bogi, Sep 25, 2009 IP
  7. dweebsonduty

    dweebsonduty Active Member

    Messages:
    131
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    71
    Digital Goods:
    1
    #7
    <input type="hidden" name="item_name" value="Services_<?php echo $X ?>">
     
    dweebsonduty, Sep 25, 2009 IP
  8. X P S

    X P S Well-Known Member

    Messages:
    500
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    110
    #8
    X P S, Sep 25, 2009 IP