Raising this as a question as I don't believe it's an actual bug.
I am dealing with the old checkout.js integration.
paypal.Button.version
"4"
paypal.version
"4.0.314"
The issue I am facing is that the onInit() is not being called at all. All other callbacks work as expected.
I found the following issue but don't actually understand what is the wrong way to init the buttons. I am not sure if it's even supported in this version. Couldn't find anything related in the release notes.
I'd like to perform some validations many of which are discussed here and here, however it seems some of the suggested solutions either don't work or seem deprecated.
For older integrations the workaround to the onInit() -> onClick() validation pattern would be validate() -> onClick.
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.
Most helpful comment
For older integrations the workaround to the
onInit()->onClick()validation pattern would bevalidate()->onClick.