#venu_error
1 messages ยท Page 1 of 1 (latest)
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.
- venu_error, 15 hours ago, 15 messages
๐ Welcome to your new thread!
โฒ๏ธ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.
โฑ๏ธ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always start a new thread if you have another question.
๐ This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1234728477739978855
๐ Have more to share? Add more details, code, screenshots, videos, etc. below.
Can you share your code of your integration?
<ion-content>
<form id="payment-form" >
<div id="express-checkout-element">
</div>
<br />
<div id="payment-element" class="field">
</div>
<div id="error-message">
</div>
<button id="submit"(click)="validateCard()">
<div class="spinner hidden" id="spinner"></div>
<span id="button-text" >Pay now</span>
</button>
</form>
</ion-content>
Where did you see this integration from?
const elements = this.stripe.elements(
{ clientSecret: this.clientSecret }
);
I'd recommend ensuring one Element works before moving on to the next one.
For example in Express Checkout Session, the client secret should be set at stripe.confirmPayment(): https://docs.stripe.com/elements/express-checkout-element/accept-a-payment
Only when you get one element type to work, you'd then integrate with another
I'm refer same doc
this.stripe.confirmPayment({
elements: this.stripe.elements(
{ clientSecret: this.clientSecret }
),
confirmParams: {
return_url: 'https://example.com/return',
}
})
I have also tried this code
and when pass mount element from paymentElement() then error show in validateCard() confirmPaymentMethod
const elements = this.stripe.elements(
{ clientSecret: this.clientSecret }
);
Where did you see this from? Can you share the integration doc that you're following?
Are you following this for Payment Element integration? https://docs.stripe.com/payments/accept-a-payment?platform=web&ui=elements
The elements in your code is a local variable. I'd recommend checking the quickstart guide here for Payment Element integration: https://docs.stripe.com/payments/quickstart?lang=node
yes I have following this--- https://docs.stripe.com/payments/accept-a-payment?platform=web&ui=elements
But implementing in ionic framework using latest @stripe/stripe-js:3.3.0 version.. so for resolving facing errors need to changes in code related with integration