此商家已禁用PayPal DPRP

时间:2016-06-09 13:56:46

标签: paypal paypal-sandbox paypal-subscriptions paypal-rest-sdk

我想使用直接付款方式创建定期个人资料。

我已在沙盒帐户中启用了Business Pro帐户,如下所示。

Business Pro Account

以下是API凭据。

API Credentials

以下是我用于创建重复配置文件的源代码。

$data = array(
    'USER' => urlencode('tahir.jumpstart-facilitator_api1.nxvt.com'),
    'PWD' => urlencode('BHVM3E9XSLAJP9PX'),
    'SIGNATURE' => urlencode('AAYoJuE-6E-mj5oERynM8zN4s4OrAvfUS7h9g45hGPQmxWb5RJxdJEBp'),
    'VERSION' => '69.0',
    'METHOD' => urlencode('CreateRecurringPaymentsProfile'),
    'PROFILESTARTDATE' => gmdate("Y-m-d\TH:i:s\Z"),
    'DESC' => urlencode('RacquetClubMembership'),
    'BILLINGPERIOD' => 'Month', 
    'BILLINGFREQUENCY' => 1, 
    'AMT' => 10, 
    'MAXFAILEDPAYMENTS' => 3,
    'ACCT' => '4032030239913727', 
    'CREDITCARDTYPE' => 'VISA', 
    'CVV2' => '123', 
    'FIRSTNAME' => 'James',
    'LASTNAME' => 'Smith',
    'STREET' => 'FirstStreet',
    'CITY' => 'SanJose',
    'STATE' => 'CA',
    'ZIP' => '95131',
    'COUNTRYCODE' => 'US', 
    'CURRENCYCODE' => 'USD',
    'EXPDATE' => '072021'
);
$fields_string = http_build_query($data);
$curl = curl_init();

curl_setopt($curl, CURLOPT_RETURNTRANSFER, true);
curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, false);
curl_setopt($curl, CURLOPT_POST, true);
curl_setopt($curl, CURLOPT_URL, 'https://api-3t.sandbox.paypal.com/nvp');
curl_setopt($curl, CURLOPT_POSTFIELDS, $fields_string);

$response = curl_exec($curl);
echo '<pre>';
print_r($response);
die;
$err = curl_error($curl);

curl_close($curl);

但是当我运行上面的代码时,它会显示以下错误消息。

  

TIMESTAMP = 2016%2d06%2d09T13%3a52%3a39Z&amp; CORRELATIONID = 77466c4ec86e5&amp; ACK =失败&VERSION = 69%2e0&amp; BUILD = 22204133&amp; L_ERRORCODE0 = 11586&amp; L_SHORTMESSAGE0 =禁用DPRP&amp; L_LONGMESSAGE0 = DPRP已禁用此功能商家安培; L_SEVERITYCODE0 =错误

我在互联网上搜索过,他们建议只启用已经启用的Business Pro帐户,您可以在上面的屏幕截图中清楚地看到这一点。

我现在迷路了,如果有人能告诉我上述代码是否有问题或者我遗失了什么,我真的很感激吗?

非常感谢!

1 个答案:

答案 0 :(得分:0)

请提交PayPal MTS ticket以帮助您授予DPRP访问权限。