PayPal Integration

Discussion in 'PHP' started by Rory M, Oct 28, 2008.

  1. #1
    Hi Everyone,

    How easy is it to integrate a script with PayPal? I know they have an API of some sorts but is it relatively hassle free? And while I'm on the matter (all you clever peeps out there) which other gateways are worth integrating (and easy to do)?

    Thanks
     
    Rory M, Oct 28, 2008 IP
  2. caffeinefree

    caffeinefree Guest

    Messages:
    43
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #2
    paypal integration is very easy. It really only involves submitting the proper data to them.
     
    caffeinefree, Oct 28, 2008 IP
  3. Barti1987

    Barti1987 Well-Known Member

    Messages:
    2,703
    Likes Received:
    115
    Best Answers:
    0
    Trophy Points:
    185
    #3
    I just wrote a Paypal class for a membership script I am working on (the class will process any type of transaction, shopping cart, buy now, subscription, donation, paypal shopping cart and gift certificates)

    I'll release the class today hopefully.

    Peace,
     
    Barti1987, Oct 28, 2008 IP
  4. swanwebtech

    swanwebtech Guest

    Best Answers:
    0
    #4
    <form action="https://www.paypal.com/cgi-bin/webscr" method="post">
    <input type="hidden" name="cmd" value="_xclick">
    <input type="hidden" name="business" value="myemailwithpaypal@hotmail.com">
    <input type="hidden" name="item_name" value="pants">
    <input type="hidden" name="amount" value="10.00">
    <input type="hidden" name="no_shipping" value="1">
    <input type="hidden" name="no_note" value="1">
    <input type="hidden" name="currency_code" value="GBP">
    <input type="hidden" name="lc" value="GB">
    <input type="hidden" name="bn" value="PP-BuyNowBF">
    <input type="image" src="https://www.paypal.com/en_GB/i/btn/btn_paynowCC_LG.gif" border="0" name="submit" alt="PayPal - The safer, easier way to pay online.">
    <img alt="" border="0" src="https://www.paypal.com/en_GB/i/scr/pixel.gif" width="1" height="1">
    </form>
     
    swanwebtech, Oct 28, 2008 IP