PayPal NVP API - BMUpdateButton

I have a hosted subscribe button with PayPal, which I want to have an unlimited number of billing cycles. This is easy enough to set up through the PayPal web interface, by setting 'After how many cycles should billing stop?' to 'Never'. However, when I then update that button through the PayPal NVP API BMUpdateButton, the number of billing cycles shows to the user as '$25.00 AUD for one month' instead of '$25.00 AUD for each month'. The button still shows 'Never' as the value in the web interface, but when it is used, the button is set to complete after 1 month.

I have tried variations of L_OPTIONnTOTALBILLINGCYCLESx API parameter, but with no success. Any help or thoughts would be appreciated. For all I know, this is a subtle bug in PayPal itself. If anyone has reason to believe that if I switch from NVP to SOAP it will work, then that would also count as a solution.

Here is a sample of the parameters that I send through. I don't get any API errors, and the button updates correctly except for the total billing cycles.

'METHOD' => BMUpdateButton
'VERSION' => 117
'USER' => ...
'PWD' => ...
'SIGNATURE' => ...

'L_OPTION0SELECT0' => First Tier
'L_OPTION0PRICE0' => 25.00

'L_OPTION0SELECT1' => Second Tier
'L_OPTION0PRICE1' => 30.00

'OPTION0NAME' => Payment Scheme
'L_BUTTONVAR0' => currency_code=AUD
'L_BUTTONVAR1' => no_shipping=1
'L_BUTTONVAR2' => cancel_return=...
'L_BUTTONVAR3' => return=...

Thanks very much for any thoughts.


The below two parameters in your API call is related to the installment buttons and if you pass them with the subscription type button they will be ignored.



If you are looking to update the subscription billing cycles you need to pass these two parameters :



If the above src=1 means profile is set to be recurring and srt=12 will set the billing cycle to 12 .

If you don't pass any of the parameter in the API call then by default "src" will be set to "0" meaning no recurrence which is similar to your case .

Need Your Help

Java - How to avoid overriding addObserver Observable everytime?

java swing generics observer-pattern

I am currently working on a small game for University. I have a model that extends Observable and implements a Interface.

Access two different security enabled web services from single metro client

jax-ws axis2 java-metro-framework wsit

A similar question was posted as question:is-there-a-way-to-use-multiple-wsit-client-xml... I have two different WS-Security enabled web services using Metro client and I want to access them using a

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.