#yagnesh-p_code
1 messages ¡ Page 1 of 1 (latest)
đ 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/1464129301266825360
đ Have more to share? Add more details, code, screenshots, videos, etc. below.
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.
- yagnesh-p_docs, 16 hours ago, 11 messages
Hi there can you share with me the full code snippet?
try {
this.checkout = this.stripeV3.initCheckout({
clientSecret,
elementsOptions: { appearance: STRIPE_APPEARANCE_ELEMENT },
});
this.paymentElement = this.checkout.createPaymentElement();
this.paymentElement.mount('#payment-element');
this.loadActionsResult = await this.checkout.loadActions();
if (this.loadActionsResult.type === 'success') {
this.currentCheckoutSession = this.loadActionsResult.actions.getSession();
}}}
// below function is called from button interaction in ui
async confirmPayment() {
try {
const { error, confirmResponse } = await this.checkout.confirm();
if (error) {
this.handleSecureError(error);
return;
}catch (error) {
this.handleSecureError(error);
}
How did you create the "this.stripeV3" ?
this.stripeV3 = this.stripe(publishableKey, {
betas: ['custom_checkout_adaptive_pricing_2', 'custom_checkout_server_updates_1'], locale: this.currencyCode || 'auto',
});
this.stripe = await this.stripeLoaderService.loadStripe(); // inside load stripe i have https://js.stripe.com/clover/stripe.js
The loading the script nothing else.
There is some breaking changes in API clove, so you need to use actions.confirm instead of checkout.confirm
https://docs.stripe.com/payments/quickstart-checkout-sessions complete code and guides are available here
Ah, I was accessing the wrong variable, thanks.
I am migrating the clover, hence i may have more queries in future.
No problem. sure feel free to reach out again when you need any help
Sure things, thanks again.
Hey, just a out of scope with regards to above question.
While authorising the app and I am on stripe auth page, is there any way to hide the Return to my application button .
Is this the connect onboarding page?
Yes
No there's no option to customize the return button I'm afraid
Okay, there is issue with my application that when customer click on the return button, the account is created in stripe
What issus is it?
Even after clicking on return the account is getting created in stripe
The account was already created, You need to create an account first before the onboarding.
Yes, if the account is already there customer gets to select it but when clicked on return then also a new account is created in stripe
I'd like to clarify that clicking on the return link doesn't result in creating a new account.