我在沙盒模式下调用了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
我的AddressVerification代码是,
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?
答案 0 :(得分:1)
通常不会使用沙箱启用地址验证。因此,您需要打开支持请求或拨打电话才能启用该功能。