Code to disable Paypal Button on subscriptions/payment plans - does anyone have current code that works?

Hello Community!

In past years I used custom code on my order forms that disabled the Paypal button when people chose the payment plan option. I can’t find the code and it doesn’t appear to be working on past order forms.

When people have chosen Paypal to pay their subscription now, the initial charge processes, but ongoing charges don’t work. Keap says “The recurring Paypal payment requires a billing agreement id”.

So I would like to disable the button again, but I don’t have code that does this.

Can anyone please help?