bleemster Posted February 14, 2018 Share Posted February 14, 2018 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" Quote Link to comment https://forums.phpfreaks.com/topic/306534-paypal-friends-and-family-link/ Share on other sites More sharing options...
ginerjm Posted February 14, 2018 Share Posted February 14, 2018 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? Quote Link to comment https://forums.phpfreaks.com/topic/306534-paypal-friends-and-family-link/#findComment-1556396 Share on other sites More sharing options...
Solution phpmillion Posted February 14, 2018 Solution Share Posted February 14, 2018 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. Quote Link to comment https://forums.phpfreaks.com/topic/306534-paypal-friends-and-family-link/#findComment-1556411 Share on other sites More sharing options...
ginerjm Posted February 14, 2018 Share Posted February 14, 2018 !! 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. Quote Link to comment https://forums.phpfreaks.com/topic/306534-paypal-friends-and-family-link/#findComment-1556412 Share on other sites More sharing options...
bleemster Posted February 15, 2018 Author Share Posted February 15, 2018 (edited) lol im 37 years old and a Microsoft Technical Consultant, so certainly not a "homework project" 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 February 15, 2018 by bleemster Quote Link to comment https://forums.phpfreaks.com/topic/306534-paypal-friends-and-family-link/#findComment-1556423 Share on other sites More sharing options...
phpmillion Posted February 15, 2018 Share Posted February 15, 2018 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". Quote Link to comment https://forums.phpfreaks.com/topic/306534-paypal-friends-and-family-link/#findComment-1556425 Share on other sites More sharing options...
bleemster Posted February 15, 2018 Author Share Posted February 15, 2018 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. Quote Link to comment https://forums.phpfreaks.com/topic/306534-paypal-friends-and-family-link/#findComment-1556430 Share on other sites More sharing options...
Pinecone Posted March 31, 2019 Share Posted March 31, 2019 (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 March 31, 2019 by Pinecone Quote Link to comment https://forums.phpfreaks.com/topic/306534-paypal-friends-and-family-link/#findComment-1565748 Share on other sites More sharing options...
Frank_Iyke Posted May 17, 2019 Share Posted May 17, 2019 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 Quote Link to comment https://forums.phpfreaks.com/topic/306534-paypal-friends-and-family-link/#findComment-1566802 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.