Jump to content


Photo

SetExpressCheckout problem


  • This topic is locked This topic is locked
1 reply to this topic

#1 SmokeSmoking

SmokeSmoking

    Newbie

  • Members
  • Pip
  • 2 posts

Posted 22 July 2007 - 01:47 AM

I had partner, vendor and password.... But I couldn't find url to send my POST data.


can you help me?

my phpcode:

$ch = curl_init("what_adress_must_be_there???????");

$post_str="TRXTYPE=S&ACTION=S&AMT=5.00&CANCELURL=http://www.url.com&PARTNER=my_partner&PWD=my_password&RETURNURL=http://www.my_url.com&TE
NDER=P&USER=my_user&VENDOR=my_vendor&METHOD=SetExpressCheckout&VERSION=2.300000";




curl_setopt($ch, CURLOPT_HEADER, 0);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 0);
curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 0);
curl_setopt($ch, CURLOPT_POSTFIELDS, $post_str);
curl_setopt($ch, CURLOPT_POST, 1);
$result=curl_exec($ch);
curl_close($ch);

var_export($result);



#2 janeshiranga

janeshiranga

    Newbie

  • Members
  • Pip
  • 5 posts

Posted 03 August 2008 - 11:35 PM

Use "https://api-3t.paypal.com/nvp" for PayPal "live" production server for use with API signatures and https://api-3t.sandbox.paypal.com/nvp for Sandbox server for use with API signatures.




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users