SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Wizard
    Join Date
    Jul 2006
    Location
    New Zealand
    Posts
    1,300
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    paypal subscripting api link php code

    Hi there i was developing a paypal button scription link last year around October/November/dec approximately and ive just started to release paypal no longer accepting the way i am doing it now they have this code heres an example of wat they have now.

    https://www.paypal.com/cgi-bin/websc...ton_id=3567391


    When i was doing it last year the method i was doing it was

    PHP Code:
    $target "https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&business=$paypalemail&item_name=$invoice&amount=$newcost&
                    return=
    $merchantppyes&cancel_return=$merchantppno"
    Now when i tried that it just doesnt seem want to work with it i have somthing missing not sure what though this is the end result.

    https://www.paypal.com/cgi-bin/websc...31&amount=1.30

    Can anyone help me with this problem because im wanting to add in paypal subscriptions in to my order system and this seem to work fine last year

    Any help would be good,

    Thanks,Will

  2. #2
    Follow Me On Twitter: @djg gold trophysilver trophybronze trophy Dan Grossman's Avatar
    Join Date
    Aug 2000
    Location
    Philadephia, PA
    Posts
    20,578
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Go into your PayPal account, generate a subscription link, and see the new format. I haven't seen an _s-xclick link before, that must be pretty old.

  3. #3
    SitePoint Wizard
    Join Date
    Jul 2006
    Location
    New Zealand
    Posts
    1,300
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    yea i took another look and i cant even create a subscription link the format it only shows me is in this format.

    Code:
    https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=3567746
    or

    Code:
    <form target="paypal" action="https://www.paypal.com/cgi-bin/webscr" method="post">
    <input type="hidden" name="cmd" value="_s-xclick">
    <input type="hidden" name="hosted_button_id" value="3567746">
    <input type="image" src="https://www.paypal.com/en_GB/i/btn/btn_cart_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_US/i/scr/pixel.gif" width="1" height="1">
    </form>


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •