0

我在沙盒模式下调用了 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 的方法?

4

1 回答 1

1

沙盒通常不启用地址验证。因此,您需要打开支持请求或拨打电话以启用该功能。

于 2012-08-26T13:01:38.120 回答