#darshana_ah_51451
1 messages · Page 1 of 1 (latest)
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.
- darshana_ah_51451, 5 hours ago, 15 messages
Hi 👋
Can you share the docs you are following and the specific step where you are running into a problem?
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?
Okay, what front and back end architecture are you using?
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>
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?
I see this in console
Okay, can you share the ID of the payment Intent you are creating?
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
Should I get specific value in paymentElement variable?
Are you simple implementing the exact code we show in checkout.js or do you have any modifications?
Same code
Okay this is pretty hard to debug. Do you have a front-end I could visit?