#yagnesh-p_code

1 messages ¡ Page 1 of 1 (latest)

polar sonnetBOT
#

👋 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.

gilded ravine
#

Hi there can you share with me the full code snippet?

bronze tree
#
        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);
        }
gilded ravine
#

How did you create the "this.stripeV3" ?

bronze tree
#

this.stripeV3 = this.stripe(publishableKey, {
betas: ['custom_checkout_adaptive_pricing_2', 'custom_checkout_server_updates_1'], locale: this.currencyCode || 'auto',
});

gilded ravine
#

And what's " this.stripeLoaderService." ?

#

Ah OK I think I know the problem

bronze tree
gilded ravine
#

There is some breaking changes in API clove, so you need to use actions.confirm instead of checkout.confirm

bronze tree
#

Ah, I was accessing the wrong variable, thanks.
I am migrating the clover, hence i may have more queries in future.

gilded ravine
#

No problem. sure feel free to reach out again when you need any help

bronze tree
#

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 .

gilded ravine
#

Is this the connect onboarding page?

bronze tree
#

Yes

gilded ravine
#

No there's no option to customize the return button I'm afraid

bronze tree
#

Okay, there is issue with my application that when customer click on the return button, the account is created in stripe

gilded ravine
#

What issus is it?

bronze tree
#

Even after clicking on return the account is getting created in stripe

gilded ravine
#

The account was already created, You need to create an account first before the onboarding.

bronze tree
#

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

gilded ravine
#

I'd like to clarify that clicking on the return link doesn't result in creating a new account.