Create an element `document.create('stripe-connect-payments');
Load connect.js
Then this element does not have our custom element code loaded. The part that is missing is connecting it to the DOM.
In this case (where setConnector is not defined and the element is not connected) we simply connect and disconnect the element to the DOM to trigger the custom element code in connect.js from loading.
I discovered that if we:
Then this element does not have our custom element code loaded. The part that is missing is connecting it to the DOM.
In this case (where setConnector is not defined and the element is not connected) we simply connect and disconnect the element to the DOM to trigger the custom element code in connect.js from loading.