YetAnotherForum
Welcome Guest Search | Active Topics | Log In | Register

I've got the basics but this is driving me mad... Options
FOLD
#1 Posted : Tuesday, February 03, 2009 9:58:14 PM
Rank: Starting Member

Groups: Registered

Joined: 2/3/2009
Posts: 1
Location: ,
Hi guys! I know basic php but whilst coding the site I'm currently working on I ran into a problem. Basically, I need information on how to make a secure IPN for sending back user information (first name, last name, email, somerandominfo) to my server. I understand the basics of the system but am having difficulties understanding the specific details regarding the ipn. As I said I have PHP knowledge, but can't really build things I don't understand. Please respond!
Sponsor  
 
srilankawebdesign
#2 Posted : Saturday, September 05, 2009 12:02:56 PM
Rank: Starting Member

Groups: Registered

Joined: 4/25/2009
Posts: 13
Location: ,
Hi

Don’t worry. Use PHP PayPal class code.

It is using CURL. What is is doing
Get the payment details from the PayPal server.
And the we need to check these data came from really paypal. What we do is we will open the paypal socket and ask it.

If paypal says SUCSESS the we are ok. That mean that is a actual payment.

Did I answered to your question?

If you need any help with paypal IPN or API just email me.




Sri Lanka Web Design
www.srilankawebdesign.com
+94115741911
beddman963
#3 Posted : Friday, November 27, 2009 7:04:42 AM
Rank: Starting Member

Groups: Registered

Joined: 11/27/2009
Posts: 1
Location: Athens
Hi there. I have a similar problem. In my return page I have this code

$req = 'cmd=_notify-synch';

$tx_token = $_GET['tx'];

$auth_token = "ifdjnhgeki";//not the real one

$req .= "&tx=$tx_token&at=$auth_token";

// post back to PayPal system to validate
$header = "POST /cgi-bin/webscr HTTP/1.0\r\n";
$header .= "Content-Type: application/x-www-form-urlencoded\r\n";
$header .= "Content-Length: " . strlen($req) . "\r\n\r\n";
$fp = fsockopen ('www.sandbox.paypal.com', 80, $errno, $errstr, 30);[/code][/code]
etc..etc..

But the return value is always FAIL. What could be the possible cause?
My php is SSL enabled
Users browsing this topic
Guest
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

YAFVision Theme by Jaben Cargman (Tiny Gecko)
Powered by YAF 1.9.3 | YAF © 2003-2009, Yet Another Forum.NET
This page was generated in 0.282 seconds.