Find Jobs
Hire Freelancers

Need PayPal PHP Curl Login Script

$30-250 USD

Annulé
Publié il y a presque 13 ans

$30-250 USD

Payé lors de la livraison
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: [login to view URL] 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: <?php $headers = array("User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.0.8) Gecko/20061025 Firefox/1.5.0.8", '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, '[login to view URL]'); curl_setopt($ch, CURLOPT_COOKIEFILE, '[login to view URL]'); curl_setopt($ch, CURLOPT_URL, $url); curl_setopt($ch, CURLOPT_FOLLOWLOCATION, TRUE); curl_setopt ($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt($ch, CURLOPT_VERBOSE, 1); curl_setopt($ch, CURLOPT_HTTPHEADER, $headers); curl_setopt($ch, CURLOPT_MAXREDIRS, 1000); curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, FALSE); $login = curl_exec ($ch); preg_match("/merchantpaymentweb?cmd=_flow(.*?)\"/", $login, $output); $link = "[login to view URL]".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, " CONTEXT=$CONTEXT &close_external_flow=false &cmd=_flow &external_close_account_payment_flow=payment_flow &flow_name=xpt/Merchant/hostedpayments/Login &flow_name=xpt/Merchant/hostedpayments/Login &form_charset=UTF-8 &id= &login.x=Log In &login_email=my_email &login_password=my_password &myAllTextSubmitID= "); $should_be_logged_in_now = curl_exec($ch); var_dump($should_be_logged_in_now); exit(); ?>
N° de projet : 1023065

Concernant le projet

5 propositions
Projet à distance
Actif à il y a 13 ans

Cherchez-vous à gagner de l'argent ?

Avantages de faire une offre sur Freelancer

Fixez votre budget et vos délais
Soyez payé pour votre travail
Surlignez votre proposition
Il est gratuit de s'inscrire et de faire des offres sur des travaux
5 freelances proposent en moyenne $66 USD pour ce travail
Avatar de l'utilisateur
I can send in the fragment of missing code
$50 USD en 3 jours
4,8 (79 commentaires)
6,8
6,8
Avatar de l'utilisateur
Sir, Please check your PMB. Regards, ALSOFT
$99 USD en 0 jour
4,9 (55 commentaires)
6,4
6,4
Avatar de l'utilisateur
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.Net 1.1/2.0/3.5, AJAX, Visual Foxpro, DOTNETNUKE, VB 6.0, Crystal Reports 8.5, ASP, PHP, JSP tools, PL/SQL, MS SQL Server 2000/2005, My SQL. Regards, Sheik Abdul Gafoor
$100 USD en 2 jours
5,0 (6 commentaires)
3,6
3,6
Avatar de l'utilisateur
====================Please check PMB===================================
$50 USD en 1 jour
0,0 (0 commentaires)
0,0
0,0
Avatar de l'utilisateur
check pm.........
$30 USD en 0 jour
0,0 (0 commentaires)
0,0
0,0

À propos du client

Drapeau de NORWAY
Oslo, Norway
5,0
9
Méthode de paiement vérifiée
Membre depuis nov. 18, 2010

Vérification du client

Merci ! Nous vous avons envoyé un lien par e-mail afin de réclamer votre crédit gratuit.
Une erreur a eu lieu lors de l'envoi de votre e-mail. Veuillez réessayer.
Utilisateurs enregistrés Total des travaux publiés
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Chargement de l'aperçu
Permission donnée pour la géolocalisation.
Votre session de connexion a expiré et vous avez été déconnecté. Veuillez vous connecter à nouveau.