Đã Hủy

Need PayPal PHP Curl Login Script

The budget is 30$ , this should be a piece of cake if you have curl'ed into paypal before.

I have a script that CURLs into a webshop and places an order.

I got to the point where the site redirects me to paypal, to pay the order.

What i need, is a function that will take a paypal-link as parameter, and successfully log in to paypal.

The paypal-link the webshop gives to me, looks like this:

[url removed, login to view]

I have tried to make one myself, but when i post the curl call, i only get this message:

"Sorry - Your last action could not be completed".

You can probably find a script like this on google, but I have tried to find one and have failed..

The script i tried to make for logging into paypal looks like this. Maybe you can see what is missing, or what is wrong:


$headers = array("User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv: Gecko/20061025 Firefox/", 'Connection: Keep-Alive', 'Keep-Alive: 115',

'Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0');

$url = $_GET[link];

$ch = curl_init();

curl_setopt ($ch, CURLOPT_COOKIEJAR, '[url removed, login to view]');

curl_setopt($ch, CURLOPT_COOKIEFILE, '[url removed, login to view]');

curl_setopt($ch, CURLOPT_URL, $url);


curl_setopt ($ch, CURLOPT_RETURNTRANSFER, 1);

curl_setopt($ch, CURLOPT_VERBOSE, 1);

curl_setopt($ch, CURLOPT_HTTPHEADER, $headers);

curl_setopt($ch, CURLOPT_MAXREDIRS, 1000);


$login = curl_exec ($ch);

preg_match("/merchantpaymentweb?cmd=_flow(.*?)\"/", $login, $output);

$link = "[url removed, login to view]".substr($output[0],0,-1);

preg_match("/CONTEXT\" value=\"(.*?)\"/", $login, $output);

$CONTEXT = $output[1];


curl_setopt($ch, CURLOPT_URL, $link);

curl_setopt ($ch, CURLOPT_POST, 1);

curl_setopt ($ch, CURLOPT_POSTFIELDS, "









&login.x=Log In





$should_be_logged_in_now = curl_exec($ch);




Kĩ năng: PHP

Xem nhiều hơn: php paypal login script, paypal curl login, curl login paypal, paypal cmd dispatch session, login paypal php, php curl login paypal, paypal login php, paypal php curl login, login paypal php curl, php curl https login paypal, paypal curl login php, paypal php login script, curl paypal login script, php curl paypal script, paypal login curl php, paypal curl_exec login, paypal login script, php curl paypal, php login paypal, paypal curl php login, windows action script, session php, session 13, post dispatch, paypal.x.com

Về Bên Thuê:
( 9 nhận xét ) Oslo, Norway

ID dự án: #1023065

5 freelancer đang chào giá trung bình $66 cho công việc này


I can send in the fragment of missing code

$50 USD trong 3 ngày
(79 Nhận xét)

Sir, Please check your PMB. Regards, ALSOFT

$99 USD trong 0 ngày
(55 Nhận xét)

Hi, I have over 12 years of Experience in software design, development and implementation of various commercial applications in Client/Server environment, Web and ERP applications using C# 1.1/2.0/3.5, ASP.Net, VB Thêm

$100 USD trong 2 ngày
(6 Nhận xét)

====================Please check PMB===================================

$50 USD trong 1 ngày
(0 Nhận xét)

check pm.........

$30 USD trong 0 ngày
(0 Nhận xét)