Collect payment details before creating an Intent

[ad_1]

Hi,

In the last two weeks, we noticed that no payments were coming through the Stripe plugin and only afterpay/paypal.

The last entry we have on the stripe dashboard reporting side, shows the last entry for payment was approx 20th April.

Below is the error that looks to be generated when clicking Submit for the checkout, we had no problems previously and I can not work out the problem.

Testing the connection to stripe, no problems – but when clicking submit, it just doesnt do anything except generate below error in the chrome console.

Any help on the below error please?

Uncaught (in promise) IntegrationError: elements.submit() must be called before stripe.createPaymentMethod(). Call elements.submit() as soon as your customer presses pay, prior to any asynchronous work. Integration guide: https://stripe.com/docs/payments/accept-a-payment-deferred

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer