Is it possible to change only AMT using UpdateRecurringPaymentsProfile PayPal?

ε祈祈猫儿з 提交于 2019-12-11 09:38:15

问题


This question has been posted elsewhere however I have not found a specific answer yet.

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=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
)

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?

Many thanks in advance.


回答1:


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/



来源:https://stackoverflow.com/questions/27186572/is-it-possible-to-change-only-amt-using-updaterecurringpaymentsprofile-paypal

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!