#nitin-elements

1 messages · Page 1 of 1 (latest)

limber wave
#

looks like you don't have a DOM Element with id='payment-form' in your HTML.

true slate
#

I do have sir

#

<form id="payment-form">
<label for="card-element">Card</label>
<div id="card-element">
<!-- Elements will create input elements here -->
</div>

            <!-- We'll put the error messages in this element -->
            <div id="card-errors" role="alert"></div>

            <button id="submit">Pay</button>
          </form>
#

i am calling the form via wordpress plugin page

limber wave
limber wave
true slate
#

just add a product and check the checkout page

#

form does not show up

#

loads for a while and disappears

#

Sir, pls help

limber wave
#

this can't work the way you're building it, you need to just use the WooCommerce plugin the way it tells you to, you can't use custom code like this.

true slate
#

Ok sir ☹️ Thank you