ethercreative / web-payments

Web Payments for Craft Commerce
Other
5 stars 7 forks source link

IntegrationError: Missing argument. Make sure to call mount() with a valid DOM element or selector #16

Open iamtompickering opened 4 years ago

iamtompickering commented 4 years ago

I am updating the payment form on the checkout page via ajax, and so have been trying to use window.payButton = window.payButton.reload(); The Apple Pay button shows on page load fine, and I have run successful live test transactions.

But I have a couple of buttons to switch between stripe and paypal payment gateways. These are being updated via ajax as I said, and when I try and include the above function in the complete function of the ajax request, it throws an error. IntegrationError: Missing argument. Make sure to call mount() with a valid DOM element or selector.

Have you seen this error before / know what could be causing it?

syahirudean commented 3 years ago

Have the same issue... did you manage to resolve this?

iamtompickering commented 3 years ago

@ImCodean unfortunately I did not resolve this, would be real keen for the guys at Ether to take a look!