检查Paypal中的已验证电子邮件

时间:2016-09-29 06:23:23

标签: php paypal

$url = trim("https://svcs.sandbox.paypal.com/AdaptiveAccounts/GetVerifiedStatus"); //Sandbox URL
$API_UserName = "XXXXXXX";
$API_Password = "XXXXXXX";
$API_Signature ="XXXXXXX";
$API_AppID = "APP-80W284485P519543T";
$API_RequestFormat = "NV";
$API_ResponseFormat = "NV";

$bodyparams = array ("requestEnvelope.errorLanguage" => "en_US",
                     "emailAddress" =>"xxxx@gmail.com",
                     "firstName" =>"XXX",
                     "lastName" =>"YYY",
                     "matchCriteria" => "NAME"
                    );
$body_data = http_build_query($bodyparams, "", chr(38));

我正在做上面的代码,但它没有给我任何输出。任何人都可以建议我在哪里错了?

如果我使用以下网址

$url = trim("https://svcs.paypal.com/AdaptiveAccounts/GetVerifiedStatus"); //Paypal URL

然后它给了我以下回复

responseEnvelope.timestamp: 2016-09-28T23%3A24%3A41.132-07%3A00
responseEnvelope.ack: Failure
responseEnvelope.correlationId: 192ed30d1b3d7
responseEnvelope.build: 24397612
error(0).errorId: 560022
error(0).domain: PLATFORM
error(0).subdomain: Application
error(0).severity: Error
error(0).category: Application
error(0).message: The+X-PAYPAL-APPLICATION-ID+header+contains+an+invalid+value
error(0).parameter(0): X-PAYPAL-APPLICATION-ID

1 个答案:

答案 0 :(得分:0)

我们强烈建议您下载adaptiveaccounts演示版进行测试。 其中包括演示中的getVerfiedStatus API调用。