#hrach_error

1 messages · Page 1 of 1 (latest)

robust widgetBOT
#

👋 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/1272915039745085442

📝 Have more to share? Add more details, code, screenshots, videos, etc. below.

proper caveBOT
#

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 schooner
#

I have tried on test env, assuming that its because of localhost, but same issue, and I have prepared an env and account for you to try on your end on my website, this what we came from previous messages,

analog lava
#

Hi, can you say more please? Where is your webpage for use to reproduce the issue 'and I have prepared an env and account for you to try on your end on my website,'?

gilded schooner
slate pendant
#

Hello, checking out your site

gilded schooner
#

thx a lot

slate pendant
#

Interesting, the page properly opens a modal on the same page for me now. Did you change anything on your side?

gilded schooner
#

no nothing changed

#

strange

#

can it be connected with some kind of a status of account? I mean if you’re trying and in some point something changed and not its open a modal?

slate pendant
#

I didn't go through anything on the modal itself so in theory nothing should have changed on the account. Looking to see if we mention any fixes on our side. Do you see the same behavior on your site now?

gilded schooner
#

will check now

slate pendant
#

Thank you. I am not finding anything, reaching out to the team that works with connect embedded components to see if they know of any recent changes

gilded schooner
#

thank you for checking

#

actually my teammate face same behaviour 2 days ago, I mean it works with new tab then suddenly changed to modal

slate pendant
#

Looking at your initial message again it looks like some of your code got cut off. Can you send the full this._stripeConnectInstance.create call that you are making?

gilded schooner
#

yes its cut off because limitation

#

will send it now

#

this._stripeConnectInstance = loadConnectAndInitialize({
publishableKey: this.publicKey,
fetchClientSecret: fetchClientSecret,
appearance: {
overlays: "dialog",
variables: {
colorPrimary: "#2a2f30",
},
},
});

const accountOnboarding = this._stripeConnectInstance.create('account-onboarding', {
accountSessionId: accountSessionId,
});
accountOnboarding.setOnExit(() => {
console.log('User exited the onboarding flow');
});
const container = document.getElementById('onboarding-container');
if (container) {
container.appendChild(accountOnboarding);
}

gilded schooner
slate pendant
#

Thank you. Passing that on

gilded schooner
#

I'm checking with mac book

slate pendant
#

Can you try making a page that is a simply a button that calls that code and see if that also creates a new tab?

gilded schooner
#

can it be because of OS ? :/

slate pendant
#

I was testing on Mac myself, so it can happen there

gilded schooner
slate pendant
#

And this is pretty embarrassing but I wasn't actually seeing a difference in behavior, I just forgot that I had to click on the button on your modal that pops up and assumed it was ours. My apologies, I need some more coffee this morning

gilded schooner
#

Stripe-owned account ?

#

sorry can you say more what means Standard accounts and Stripe owned ?

slate pendant
#

Yes, standard and express accounts are considered to be Stripe owned

#

I think custom is the only one that is not considered to be. I forget how this plays with the newer account types

gilded schooner
#

so in my case creating account from backend making it custom ?

#

or creating in wrong way ?

slate pendant
#

This would be specified when creating the account in your backend. Does your code use the type parameter when making the create call?

gilded schooner
#

checking

#

they are not sending type, but as I get default type is standard

tough frost
#

Hi there 👋 jumping in as my teammate needs to step away soon. That is expected behavior if type isn't specified. In order to create a Custom Connected Account you'll need to explicitly pass type with a value of custom.

However, please let me know if you are using the controller hash when creating the Account objects.

gilded schooner
#

hi, thx for connecting

#

but I dont want to create custom type, I want to create standard account to be able to open the modal

tough frost
#

That's not supported. I'll file your feedback for our teams that this is something you'd like to see supported in the future.

gilded schooner
#

here is code snipet that my teammate send

#

what exactly not supported ? your teammate send link where is information that Standard account will open modal

tough frost
#

I thought they said a pop up (new window/new tab) would be opened rather than a modal.

gilded schooner
#

I'm confused :/

#

is there a way to achieve this

tough frost
#

Can you be more specific about what you're showing there? It looks like something opening in a window on top of something else

gilded schooner
# gilded schooner

here you can see how its opened when clicking on add information button

robust widgetBOT
gilded schooner
#

but I know there is a way to load same content in modal

tough frost
#

Nope, not if authentication is required, then a pop-up has to be used.

gilded schooner
#

but how can same account open modal in one device and new tab page on another device ?

tough frost
#

Can you elaborate? As far as I know that shouldn't be the case.

gilded schooner
#

on my end its always opens in new tab, but my teammate just send me screenshot where it opens a modal on his end on same account

tough frost
#

Is that what you're trying to show in that screenshot? If so, that isn't a modal, it's a new tab/window.

gilded schooner
#

ok my bad on wording, how can I achieve new tab/window instead of new tab/tab

#

sorry again

tough frost
#

My understanding is that isn't controllable from code, and is dependent on the settings of the browser being used.

gilded schooner
#

so its because of chrome settings?

hasty acorn
#

Hello! I'm taking over and catching up...

#

Yep, you can't control that. It depends on a combination of browser settings and the specific flow being used.

#

We'll always try to use the least-disruptive approach we can, but sometimes we have to open a new tab/window for some things.

gilded schooner
#

Hi, thx for connecting, so I just tried with chrome on windows and it open new tab/window

#

but on my macbook with chrome it opens in new tab

#

so you are right its connected with OS/browser settings

#

sorry for this long thread

#

thank you all