How to code a PayPal button to send a payment to a third party?

by mixedherbs 4 replies
I know that there is an API function to split a single 'Buy Now' button payment, but I do not want to use that method. I want to make two distinct payments for a downloadable software product with two separate PayPal buttons thus:
1) A 'Subscribe Now' button that pays me, the programmer, an initial amount followed by a monthly subscription to my PayPal account. (I already know the PayPal code to do this.)
2) A second 'Buy Now' button that pays the licensee, whoever that may be, to his PayPal account.

I know that I can ask the licensee to create his own PayPal button and give me its 'Hosted Button ID', which I can then use in my code, but this is too error-prone. I want to program the second 'Buy Now' button to send the payment directly to the licensee's PayPal account by using ONLY the licensee's PayPal account email address.

How do I code the second 'Buy Now' button to do this, please?
#programming #button #code #payment #paypal #third party
Avatar of Unregistered
  • Profile picture of the author David V
    You need a hidden field to specify the email address instead of a hosted ID.
    Code:
    <input type="hidden" name="business" value="your-email@address.com">
    This would be a real basic button and not all the hidden fields are required.
    Code:
    <form action="https://www.paypal.com/cgi-bin/webscr" method="post">
    <input type="hidden" name="cmd" value="_s-xclick">
    <input type="hidden" name="item_name" value="The Item Name">
    <input type="hidden" name="item_number" value="001">
    <input type="hidden" name="amount" value="1.00">
    <input type="hidden" name="currency_code" value="USD">
    <input type="hidden" name="business" value="your-email@address.com">
    <input type="image" src="https://www.paypalobjects.com/en_US/i/btn/btn_buynow_LG.gif" border="0" name="submit" alt="PayPal - The safer, easier way to pay online!">
    <img alt="" border="0" src="https://www.paypalobjects.com/en_US/i/scr/pixel.gif" width="1" height="1">
    </form>
    And of course you can have your own fancy button by swapping the button field with this
    Code:
    <input type="image" src="http://thebuttonurl.com/thebutton.jpg" border="0" name="submit" alt="Your Alt Tage">
    .....
    Signature
    "David has managed the digital side of my retail business for over 8 yrs
    and I can't imagine working with anyone else. ~ Carrie Silva | TheDoghouseLLC
    "
    {{ DiscussionBoard.errors[7747986].message }}
    • Profile picture of the author Kirk Ward
      Contact PayPal about their "Chained Payments."

      I believe that will do what you want.
      Signature
      "We are not here to sell a parcel of boilers and vats, but the potentiality of growing rich beyond the dreams of avarice."

      Dr. Samuel Johnson (Presiding at the sale of Thrales brewery, London, 1781)
      {{ DiscussionBoard.errors[7748877].message }}
  • Profile picture of the author dwoods
    David V's solution is exactly what l was going to recommend.
    Signature
    Need a way to drive traffic to your new site?
    -- Check out HelpMyHits.com!
    {{ DiscussionBoard.errors[7753629].message }}
  • Profile picture of the author mixedherbs
    Yes. The "business" parameter is exactly what I need. So simple! Thank you all very much.
    {{ DiscussionBoard.errors[7758115].message }}
Avatar of Unregistered

Trending Topics

  • 6 {{ upvoteCount | shortNum }}

    How to deal with pain from sitting all day?

    ish1231231 in Off Topic

    Recently I left my job and started working full time online. I spend an average of 10 hours at the computer working currently and I've come to realize that my ... [read more]

  • 3 {{ upvoteCount | shortNum }}

    How do I find a mentor?

    erealmz in Personal Development

    I've bought Bruce A Berman's secrets to success way back when. I was totally new to internet marketing and the many promises it offered in what I considered the Golden ... [read more]

  • 7 {{ upvoteCount | shortNum }}
  • 1 {{ upvoteCount | shortNum }}

    Bing ads bot clicks and unrelated keyword searches

    Itachi in PPC/SEM

    Hello all, I would like to ask what's people experience with this, I have been trying to use bing ads but I'm quite disapointed as there are many bot clicks ... [read more]

  • 6 {{ upvoteCount | shortNum }}

    Making literally 300 calls a day, critique my script I feel stuck.

    Clautusoar in Offline Marketing

    So as you already know, im making about 150- 295 calls a day, i do understand its a numbers game, however its only so if you're good at making sales. ... [read more]