Raised This Month: $51 Target: $400
 12% 

PayPal text field help.


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
bluechester
AlliedModders Donor
Join Date: Nov 2008
Old 03-06-2010 , 23:39   PayPal text field help.
Reply With Quote #1

So I decided to use the PayPal merchant service to allow players to "donate for benefits" on my server, and it seems that the Title feature that PayPal has to offer doesn't work. (or am I looking at the wrong spot in my PayPal account?)

http://i45.tinypic.com/2ebeovm.png

Where it says title in the picture, on my site it says "Enter STEAM_ID:". However when people enter their STEAM_ID, it doesn't show up anywhere in the payment they made in my PayPal. Could someone show me where to look for this field?

Last edited by bluechester; 03-06-2010 at 23:54.
bluechester is offline
Styles
Veteran Member
Join Date: Jul 2004
Location: California
Old 03-07-2010 , 00:29   Re: PayPal text field help.
Reply With Quote #2

That isn't the ideal way to do that.. Easiest way, is when they pay, on completion via PayPal (When you make the button you have a choice to do this). You redirect them to a page, from there have a simple form to fill out like steamid ect..
Styles is offline
Send a message via AIM to Styles
Sepehr
Senior Member
Join Date: Sep 2006
Location: www.aotclan.net
Old 03-07-2010 , 00:47   Re: PayPal text field help.
Reply With Quote #3

Quote:
Originally Posted by Styles View Post
That isn't the ideal way to do that.. Easiest way, is when they pay, on completion via PayPal (When you make the button you have a choice to do this). You redirect them to a page, from there have a simple form to fill out like steamid ect..

Yeah that's what i did with mine, but make sure people can't go onto the form page at anytime, so make some security so that people cant just save the URL, and keep visiting the form page when they haven't actually bought anything.
__________________
Sepehr is offline
Send a message via MSN to Sepehr
bluechester
AlliedModders Donor
Join Date: Nov 2008
Old 03-07-2010 , 01:21   Re: PayPal text field help.
Reply With Quote #4

Even if it isn't the ideal way to do it, is there a way to fix my issue?
bluechester is offline
Styles
Veteran Member
Join Date: Jul 2004
Location: California
Old 03-07-2010 , 01:42   Re: PayPal text field help.
Reply With Quote #5

Well wtf is your issue exactly I don't get it. By the way for security check refer and a few other things.
Styles is offline
Send a message via AIM to Styles
bluechester
AlliedModders Donor
Join Date: Nov 2008
Old 03-07-2010 , 01:53   Re: PayPal text field help.
Reply With Quote #6

Quote:
Originally Posted by bluechester View Post
However when people enter their STEAM_ID, it doesn't show up anywhere in the payment they made in my PayPal. Could someone show me where to look for this field?
To sum it up:
  • User buys admin
  • User enters Steam ID
  • I get the payment
  • I do not get the Steam ID

I can not see where the Steam ID is in the purchase in my PayPal account.
bluechester is offline
Styles
Veteran Member
Join Date: Jul 2004
Location: California
Old 03-07-2010 , 02:06   Re: PayPal text field help.
Reply With Quote #7

I don't know how Paypal works via their own button system. Again I recommend generating a button. Then use an IPN (Instant Payment Notification) to log it and redirect them to a page to then ask for that info or give them further instructions like email me here and please include your transaction id (Assuming you don't know PHP this will be hard. But for a fee it can be done. Many people are fluent in PHP around here. I bet we could even help for free if you get somewhere)
Styles is offline
Send a message via AIM to Styles
VMAN
Senior Member
Join Date: Oct 2007
Location: California, US
Old 03-07-2010 , 02:31   Re: PayPal text field help.
Reply With Quote #8

PHP Code:
<?php
if(strlen(strstr($_SERVER["HTTP_REFERER"], "https://www.paypal.com/us/cgi-bin/webscr")) > 0) {
//Was referred from paypal
// go ahead and include page content
// include("bleh.inc");
}
else {
  
// not from paypal
  
echo "Error.";
  exit;
}
?>
__________________

Last edited by VMAN; 03-07-2010 at 02:33.
VMAN is offline
VMAN
Senior Member
Join Date: Oct 2007
Location: California, US
Old 03-07-2010 , 02:59   Re: PayPal text field help.
Reply With Quote #9

Tested and works. Just replace values with your own

PHP Code:
<form action="https://www.paypal.com/cgi-bin/webscr" method="post" target="_blank" onsubmit="return pp_checkform()">
<
input type="hidden" name="cmd" value="_donations">
<
input type="hidden" name="business" value="[email protected]">
<
input type="hidden" name="lc" value="US">
<
input type="hidden" name="item_name" value="ORGANIZATION NAME">
<
input type="hidden" name="item_number" value="DONATION ID">
<
input type="hidden" name="currency_code" value="USD">
<
input type="hidden" name="bn" value="PP-DonationsBF:btn_donateCC_LG.gif:NonHostedGuest">
<
input type="hidden" name="on0" value="Steam ID">
Steam ID: <input id="pp_steamid" type="text" maxlength="32" name="os0">
<
br />
<
input type="image" src="https://www.paypal.com/en_US/i/btn/btn_donateCC_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>
<
script type="text/javascript">
function 
pp_checkform() {
  var 
field document.getElementById("pp_steamid").value;

  if(
field == null || field.length == 0) {
    
alert("Steam ID is required.");
    return 
false;
  }

  else {
    return 
true;
  }
}
</script> 
__________________
VMAN is offline
Styles
Veteran Member
Join Date: Jul 2004
Location: California
Old 03-07-2010 , 03:29   Re: PayPal text field help.
Reply With Quote #10

VMAN, refer can be spoofed easily.
Styles is offline
Send a message via AIM to Styles
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 11:16.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode