#darshana_ah_51451

1 messages · Page 1 of 1 (latest)

slender shoalBOT
#

Hello! We'll be with you shortly. Below are links to other discussions we've had with you in the past week in case you want to review that information. If your question is related to one of these previous discussions, please provide a comprehensive summary of the current state and what you need help with now. We help many users simultaneously, so a summary allows us to resolve your issue as soon as possible.

arctic thistle
#

Hi 👋

Can you share the docs you are following and the specific step where you are running into a problem?

tidal cypress
#

I do not see any error on console but the payment form is not rendering.

arctic thistle
#

What step are you on?

#

And what type of integration are you building?

#

All those buttons at the top of the page, which ones have you selected?

tidal cypress
#

Custom Payment Flow

#

I am building UI for payment form

arctic thistle
#

Okay, what front and back end architecture are you using?

tidal cypress
#

Front is js and html, backend is node

#

I got clientSecret from backend

arctic thistle
#

Okay great.

#

It doesn't look like you have the form we show in checkout.html written though.

 <!-- Display a payment form -->
    <form id="payment-form">
      <div id="payment-element">
        <!--Stripe.js injects the Payment Element-->
      </div>
      <button id="submit">
        <div class="spinner hidden" id="spinner"></div>
        <span id="button-text">Pay now</span>
      </button>
      <div id="payment-message" class="hidden"></div>
    </form>
tidal cypress
#

I have added

#

The stripe iframe created but the body of iframe is empty

arctic thistle
#

Okay so that sounds like the payment element did not have anything to render. Can you put console.log() statements before and after the lines

const paymentElement = elements.create("payment", paymentElementOptions);
paymentElement.mount("#payment-element");
#

to validate the code execution is happening on thoes lines?

tidal cypress
#

I see this in console

arctic thistle
#

Okay, can you share the ID of the payment Intent you are creating?

tidal cypress
#

pi_3Oo88rSJzDxzlcVN1idV84TR

#

??

arctic thistle
#

Sorry for the delay. It's been quite busy here

#

Okay so this is configured for card payment methods. So I would expect a Payment Element to be rendered with the Card inputs

tidal cypress
#

Should I get specific value in paymentElement variable?

arctic thistle
#

Are you simple implementing the exact code we show in checkout.js or do you have any modifications?

tidal cypress
#

Same code

arctic thistle
#

Okay this is pretty hard to debug. Do you have a front-end I could visit?