我在沙盒模式下调用了 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
我的地址验证代码是,
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 的方法?