23 Apr 2012 19:03
Re: A propos de paypal_ipn
Cédric Morin <cedric.morin <at> yterium.com>
2012-04-23 17:03:49 GMT
2012-04-23 17:03:49 GMT
Attention, tous les serveurs et PHP ne disposent pas de Curl... Le 23 avr. 2012 à 18:56, toutati a écrit : > Hum, en suivant > > http://www.geekality.net/2011/05/28/php-tutorial-paypal-instant-payment-notification-ipn/ > > On pourrait utiliser Curl à la place de recuperer_page, Rastapopoulos qu'en penses-tu? > > Au moins Curl renvoie bien INVALID avec un simple $datas['cmd'] = "_notify-validate"; > > $request = curl_init(); > curl_setopt_array($request, array > ( > CURLOPT_URL => $url, > CURLOPT_POST => TRUE, > CURLOPT_POSTFIELDS => http_build_query($datas), > CURLOPT_RETURNTRANSFER => TRUE, > CURLOPT_HEADER => FALSE, > CURLOPT_SSL_VERIFYPEER => TRUE, > )); > > // Execute request and get response and status code > $response = curl_exec($request); > > // Close connection > curl_close($request); > > echo "Le retour de paypal est $response"; > > > ++ > touti > _______________________________________________ > spip-zone <at> rezo.net - http://listes.rezo.net/mailman/listinfo/spip-zone
RSS Feed