我正在使用带有 codeigniter 的贝宝。
我有贝宝凭证,请在下面找到 -
$this->API_USERNAME = '************';
$this->API_PASSWORD = '************';
$this->API_SIGNATURE = '************';
我的要求是:直接将付款发送到用户的贝宝电子邮件地址。我只有用户的贝宝电子邮件地址。
我使用了 Paypal_pro codeigniter 库,但没有运气,任何建议。在下面找到我的代码 -
$nvpStr = "&EMAILSUBJECT=$emailSubject&RECEIVERTYPE=$receiverType&CURRENCYCODE=$currency";
$nvpStr.="&L_EMAIL0=$receiverEmail&L_Amt0=$amount&L_ITEMAMT=$amount&L_UNIQUEID0=$uniqueID&L_NOTE0=$note";
$httpParsedResponseAr = $this->paypal_pro->hash_call('MassPay', $nvpStr);
回应是——
数组([TIMESTAMP] => 2013-09-05T17:45:07Z [CORRELATIONID] => 3dfc532f74f43 [ACK] => 失败 [VERSION] => 57.0 [BUILD] => 7560199 [L_ERRORCODE0] => 10329 [L_SHORTMESSAGE0] = > 用户被阻止 [L_LONGMESSAGE0] => 很抱歉,您的 PayPal 账户目前不符合发送批量付款的条件。请联系 PayPal 客户服务或您的客户经理。[L_SEVERITYCODE0] => 错误)
但上面的代码适用于测试凭据,请在下面找到 -
$this->API_USERNAME = 'seller_1297608781_biz_api1.lionite.com';
$this->API_PASSWORD = '1297608792';
$this->API_SIGNATURE = 'A3g66.FS3NAf4mkHn3BDQdpo6JD.ACcPc4wMrInvUEqO3Uapovity47p';
然后我改变了这一行 -
$httpParsedResponseAr = $this->paypal_pro->hash_call('SetExpressCheckout', $nvpStr);
但它返回以下错误 -
[L_SHORTMESSAGE0] => Transaction refused because of an invalid argument. See additional error messages for details.
[L_LONGMESSAGE0] => Order total is missing.
谁能帮我我做错了什么?