Php 地址验证API—;没有进行此API调用的权限
我在沙盒模式下调用了PayPal的AddressVerify API,但返回时出错Php 地址验证API—;没有进行此API调用的权限,php,paypal,Php,Paypal,我在沙盒模式下调用了PayPal的AddressVerify API,但返回时出错 [L_ERRORCODE0] => 10002 [L_SHORTMESSAGE0] => Authentication/Authorization Failed [L_LONGMESSAGE0] => You do not have permissions to make this API call [L_SEVERITYCODE0] => Error 我的地址验证代码是 functio
[L_ERRORCODE0] => 10002
[L_SHORTMESSAGE0] => Authentication/Authorization Failed
[L_LONGMESSAGE0] => You do not have permissions to make this API call
[L_SEVERITYCODE0] => Error
我的地址验证代码是
function verify_address($PayPalConfig, $email, $street, $zipcode) {
$PayPal = new PayPal($PayPalConfig);
$AVFields = array(
'EMAIL' => $email,
'STREET' => $street,
'ZIP' => $zipcode,
);
$PayPalRequestData = array(
'AVFields' => $AVFields,
);
$PayPalResult = $PayPal->AddressVerify($PayPalRequestData);
return $PayPalResult;
}
我想知道是否有任何设置可以启用此API调用或任何其他将成功调用此API的方法?地址验证通常不使用sandbox启用。因此,您需要打开一个支持请求或拨打电话来启用该功能