Paypal-checkout-components: onInit() is not being called

Created on 11 Jun 2020  路  2Comments  路  Source: paypal/paypal-checkout-components

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.

outdated

Most helpful comment

For older integrations the workaround to the onInit() -> onClick() validation pattern would be validate() -> onClick.

All 2 comments

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.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

bluepnume picture bluepnume  路  3Comments

deejbee picture deejbee  路  5Comments

stephen-last picture stephen-last  路  6Comments

Soulpancake000 picture Soulpancake000  路  5Comments

JDevjs picture JDevjs  路  6Comments