You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The return type from HostedFields.render() does not include the on() function to access field event subscription. It must by type-casted as "any" to avoid typescript errors.
🔬 Minimal Reproduction
In the .then callback from a HostedFields.render() function, try to access the .on() function:
🐞 Describe the Bug
The return type from HostedFields.render() does not include the on() function to access field event subscription. It must by type-casted as "any" to avoid typescript errors.
🔬 Minimal Reproduction
In the .then callback from a HostedFields.render() function, try to access the .on() function:
throws an "method on() does not exist on type HostedFieldsHandler" error
subscribes to the event just fine.
😕 Actual Behavior
The interface is missing declarations for the .on() subscription method.
🤔 Expected Behavior
The interface includes all method calls available through the Paypal API
🌍 Environment
➕ Additional Context
While not a critical breaking issues, as it's easily worked around, it was definitely a source of confusion.
The text was updated successfully, but these errors were encountered: