ソリューション:
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, "https://svcs.sandbox.paypal.com/AdaptivePayments/Pay");
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS, "actionType=PAY&paymentType=PERSONAL&[email protected]&cancelUrl=xxx.com¤cyCode=USD&receiverList.receiver(0)[email protected]&receiverList.receiver(0).amount=10.00&requestEnvelope.errorLanguage=en_US&returnUrl=xx.com");
curl_setopt($ch, CURLOPT_POST, 1);
$headers = array();
$headers[] = "X-Paypal-Security-Userid: xxxxxxxxxxxxxxxxxxxxx";
$headers[] = "X-Paypal-Security-Password: xxxxxxxxxxxxxxxxxx";
$headers[] = "X-Paypal-Security-Signature: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx";
$headers[] = "X-Paypal-Request-Data-Format: NV";
$headers[] = "X-Paypal-Response-Data-Format: NV";
$headers[] = "X-Paypal-Application-Id: APP-xxxxxxxxxxxxxxx";
curl_setopt($ch, CURLOPT_HTTPHEADER, $headers);
curl_setopt($ch,CURLOPT_SSL_VERIFYPEER,false);
echo $result = curl_exec($ch);
if (curl_errno($ch)) {
echo 'Error:' . curl_error($ch);
}
curl_close ($ch);
それがSOよりPayPalのサポートに適しだから、私は、オフトピックとして、この質問を閉じるために投票しています。 – duffymo