Jump to content
bleemster

PayPal friends and family link

Recommended Posts

Hi all

 

This part is integral to my site and im panicking as i cant seem to find an answer...

 

When someone clicks a link on my page with the below code it only does it as services... how can i create a paypal link to charge as friends and family PLEASE PLEASE PLEASE HELP

<form id="payid" name="_xclick" action="https://www.paypal.com/cgi-bin/webscr" method="post"> 
<input type="hidden" name="cmd" value="_xclick"> 
<input type="hidden" name="business" value="<?php echo $row1['EMAIL']; ?>"> 
<input type="hidden" name="currency_code" value="GBP">
<input type="hidden" name="item_name" value="BALL"> 
<input type="hidden" name="amount" value="<?php echo preg_replace( '/[^0-9,"."]/', '',  $row['PRICE'] ); ?>">
<!--<input type="hidden" name="return" value="http://www.theeasypc.co.uk/lottery/heandal.php">-->
<input type="hidden" name="return" value="http://www.theeasypc.co.uk/lottery/heandal.php?success=1">
    <input type="hidden" name="cancel_return" value="http://www.theeasypc.co.uk/lottery/heandal.php?error=1">

    <!-- Where to send the PayPal IPN to. -->
    <input type="hidden" name="notify_url" value="http://www.theeasypc.co.uk/lottery/heandal.php" />
<input type="image" src="http://www.paypal.com/en_US/i/btn/btn_buynow_LG.gif" border="0" name="submit" alt="Make payments with PayPal - it's fast, free and secure!">
</form>

I can see the  its set to business in one flag but ive tried to change thie to f&f, personal, friends, family, nothing works also tried "_donations"

 

 

Share this post


Link to post
Share on other sites

I see a form with a bunch of hidden fields which I am ignoring. I also see ONE image tag that is what the user is clicking. Your form's action points to a paypal page.

 

So what do YOU want to happen here? You're not making that clear in your panicked plea for help.

 

And - what does this line mean: "the below code it only does it as services"? Are you asking us how to use the paypal API?

Share this post


Link to post
Share on other sites

Took me 5 seconds to enter your question into search engine, 1 more second to click a link (which leads to PayPal forums) and several more seconds to find the answer. 

Share this post


Link to post
Share on other sites

!! I am so glad that this has been answered. I don't have to fret about understanding the queer wording and spelling of the post. Nor the stress from someone who's homework assignment(?) is close to deadline.

Share this post


Link to post
Share on other sites

lol im 37 years old and a Microsoft Technical Consultant, so certainly not a "homework project"  :happy-04:

 

This is the actual code that PayPal provides with the hidden values etc.

 

Im actually making something for a forum group I belong to and wanted this done and dusted.

 

The reason I 'strenuously' asked for help (which I didn't receive) is that every where i searched in google (yes I did search - a lot) because I started to panic that "friends and family" option is not an option and that I wondered if a PHP help forum might know about this already and have the answer. 

 

But i guess the answer is "carry on googling it as help is not provided here"

 

So PHPMillion i will even give you the "best answer" vote as it was the most helpful post i've ever received and surely its not to just help bump your post count.

 

Strange way to run a help forum - tell people to go away lmfao

Edited by bleemster

Share this post


Link to post
Share on other sites

This forum is surely for getting help and helping others, but I believe it should be a common sense to ask a question clearly at least. In this case, the question was very general, which can be solved by searching PayPal forums or PayPal knowledgebase, and it was not related to coding itself. I hope you were able to find a link to PayPal forums where this question is answered for you. Hint - the topic in PayPal forums is marked as "solved".

Share this post


Link to post
Share on other sites

I have searched a lot for the answer to "how to create a friends and family paypal button" (not a paypal service button) with no success. I've now emailed Paypal to ask how to create a F&F button, still waiting on their response. I have looked through some of the paypal forums and the ones i found were people from 2013 saying "you cant" but i cannot believe that with the scripting available now-a-days that this is an impossibility! I think the closest i have come is using paypal.me but each of my users will need to create a paypal.me account which i dont think is the way to go.

Share this post


Link to post
Share on other sites
Posted (edited)

Dear phpmillion and ginerjm,

I signed up for this forum just to post this message explaining to you what dweebtards you are. The OP's question went totally over your heads so you decided it must be stupid.

bleemster's question was perfectly reasonable if a little frantic. Concepts of the modern world may just not have penetrated to the deep caves where PHP coders dwell, but I just spent a day researching this same question and I can assure you it is not obvious. And it is barely anywhere on the net.

What phpmillion found in his scholarly 6 seconds of study was paypal.me which is useless because it requires the sender have a paypal account. Usually, when someone presses a Pay button it directs the sender to a happy page where they can enter their credit card info, no account needed. But paypal.me can't do this because the transfer is bank to bank. And that means you have to verify the bank which wastes a day.

ginerjm may like to ignore hidden fields, but in this case they were the whole point. bleemster was hoping that he could just replace "business" with something like "familynfriends" and the whole thing would work, just without the 3% vig.

tl/dr: You suck.

You can now comense to explain to me why I'm a doody-head, but I won't be out here to get the message. PHP was an abortion when it was popular, and now I certainly wouldn't want to read any more about it in it's well earned decay.

Flounce.

 

Edited by Pinecone

Share this post


Link to post
Share on other sites

Hello Bleemster

Sorry for not being here when this question was asked, i assume you may have found solution by now. However, for someone having a similer challange just go to your paypal account and create a receive payment link and finally root the billing to that link so they only get to login to their paypal through your paypal reciving link, and they will be charged. 

Thanks

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.