是否可以使用UpdateRecurringPaymentsProfile PayPal更改AMT? [英] Is it possible to change only AMT using UpdateRecurringPaymentsProfile PayPal?
问题描述
这个问题已经发布在其他地方,但是我还没有找到具体的答案.
This question has been posted elsewhere however I have not found a specific answer yet.
我要做的只是将PayPal定期付款资料的金额(AMT)从55.00英镑更改为60.00英镑.金额就是我要更改的全部.我正在使用以下代码来做到这一点:
What I want to do is simply change the amount (AMT) of a PayPal recurring payments profile from say £55.00 to £60.00. The amount is all I want to change. I am using the below to do this:
$request_params = array
(
'USER' => $api_username,
'PWD' => $api_password,
'SIGNATURE' => $api_signature,
'VERSION' => $api_version,
'METHOD' => 'UpdateRecurringPaymentsProfile',
'PROFILEID' => 'I-R159ACHCUJHF',
'AMT' => '60.00',
'NOTE' => 'Re-adjust amount to £60'
);
OR
& USER = xxxxxxx& PWD = 123456789& SIGNATURE = xyxyxyxyxyxyx& VERSION = 85.0& METHOD = UpdateRecurringPaymentsProfile& PROFILEID = I-R159ACHCUJHF& AMT = 11.00& NOTE =%-&just + Amount + 2% ; TAXAMT = 0.00
&USER=xxxxxxx&PWD=123456789&SIGNATURE=xyxyxyxyxyxyx&VERSION=85.0&METHOD=UpdateRecurringPaymentsProfile&PROFILEID=I-R159ACHCUJHF&AMT=11.00&NOTE=Re-adjust+amount+to+%C2%A360&TAXAMT=0.00
所以我想我的问题是可以仅使用上面的字段来完成此操作,还是知道我是否缺少一些可能需要的其他变量?
So I guess my question is can this be done using the fields above only or do you know if I am missing some other variables that are required possibly?
另一方面,当我在沙箱上运行此命令时,出现以下错误:
On another note, when I run this on the sandbox I get the following error:
Array
(
[TIMESTAMP] => 2014-11-28T10:11:36Z
[CORRELATIONID] => 9a5452736a159
[ACK] => Failure
[L_ERRORCODE0] => 10001
[L_SHORTMESSAGE0] => Internal Error
[L_LONGMESSAGE0] => Timeout processing request
)
有人知道这是什么意思吗,并且是否与我要求上述参数中的金额更改(AMT)的方式有关?
Does anyone understand what this means and if it relates to the way I am requesting the change in amount (AMT) in the params above?
非常感谢.
推荐答案
根据我正在尝试的示例,您还需要传递CURRENCYCODE.我实际上可以找到的唯一示例是在PayPal Developer Brazil上:
According to the example I'm cribbing from, you also need to pass CURRENCYCODE. The only example I could actually find was on PayPal Developer Brazil:
https://www.paypal-brasil .com.br/desenvolvedores/code-sample/recurring-payments-php/
这篇关于是否可以使用UpdateRecurringPaymentsProfile PayPal更改AMT?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!