Currently the JS is setting the instance of the PaymentIntentsElements class into a data property on the element. This results in a value of [Object Object] meaning it is unusable to a developer.
This PR updates the code to simply add the instance directly to a property on the DOM node (using expando).
Meaning you are now able to access the instance and do something like the following:
Description
Currently the JS is setting the instance of the
PaymentIntentsElements
class into a data property on the element. This results in a value of[Object Object]
meaning it is unusable to a developer.This PR updates the code to simply add the instance directly to a property on the DOM node (using expando).
Meaning you are now able to access the instance and do something like the following:
Related issues
275