一年多前,我编写了一个脚本来使用 AdaptivePayments api 发送自动付款。直到 10 月 25 日,当我开始收到此消息时,它都运行良好:
This+transaction+cannot+be+processed.+请+输入+a+有效+信用卡+卡+号码+and+type
我们公司的 paypal 账户链接到一个银行账户和 3 张信用卡。在上述日期之前,每次要求付款时,如果没有可用资金,贝宝就会从银行账户中提取款项,将付款作为电子支票发送。似乎现在它不再发生了。
脚本在 php 中,这些是我发送的参数:
"requestEnvelope.errorLanguage" => "en_US",
"actionType" => "PAY",
"senderEmail" => OUR_EMAIL,
"receiverList.receiver(0).email" => RECEIVER,
"receiverList.receiver(0).amount" => AMOUNT,
"currencyCode" => "CAD",
"feesPayer" => "EACHRECEIVER",
"memo" => MEMO,
"ipnNotificationUrl" => IPNURL,
"cancelUrl" => CANCELURL,
"returnUrl" => RETURNURL
这些是我完成通话的参数:
$params = array("http" =>
array("method" => "POST",
"content" => $body_data,
"header" =>
"Content-type: application/x-www-form-urlencoded\r\n" .
"X-PAYPAL-SECURITY-USERID: " . $API_UserName . "\r\n" .
"X-PAYPAL-SECURITY-PASSWORD: " . $API_Password . "\r\n" .
"X-PAYPAL-SECURITY-SIGNATURE: " . $API_Signature . "\r\n" .
"X-PAYPAL-REQUEST-DATA-FORMAT: " . $API_RequestFormat . "\r\n" .
"X-PAYPAL-RESPONSE-DATA-FORMAT: " . $API_ResponseFormat . "\r\n" .
"X-PAYPAL-APPLICATION-ID: " . $API_AppID . "\r\n"
)
);
你看有什么不对吗?谢谢
示例响应:
这是一个实际响应: {"responseEnvelope.timestamp":"2013-11-05T08%3A46%3A48.186-08%3A00","responseEnvelope.ack":"Success","responseEnvelope.correlationId":"c1ad6cc6e9574" ,"responseEnvelope.build":"7935900","payKey":"AP-1A056988AE1232421","paymentExecStatus":"ERROR","payErrorList.payError(0).receiver.amount":"5","payErrorList.payError (0).receiver.email":"jxykk%40hotmail.com","payErrorList.payError(0).error.errorId":"580036","payErrorList.payError(0).error.domain":"PLATFORM" ,"payErrorList.payError(0).error.severity":"错误","payErrorList.payError(0).error.category":"应用程序","payErrorList.payError(0).error.message":"This+transaction+cannot+be+processed.+Please+enter+a+valid+credit+card+number+and+type"}