#hrach_error
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/1272915039745085442
📝 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.
- hrach_connect-onboarding-accountsession, 21 hours ago, 72 messages
- hrach_error, 23 hours ago, 4 messages
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,
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,'?
https://testmy.10web.io/websites/14930/ecommerce/payment-methods
please navigate here -> hit "Set up" --> hit proceed in test payment block -> and you will see "add information" stripe rendered button hiting it will open new tab instead of dialog
here is credentials for account
https://send.bitwarden.com/#ret4nOdSekW2VrHLAOaRsg/2i7lcv1BR0WJhB8Yq5DIyQ
Hello, checking out your site
thx a lot
Interesting, the page properly opens a modal on the same page for me now. Did you change anything on your side?
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?
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?
will check now
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
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
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?
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);
}
on my end its still new tab
Thank you. Passing that on
I'm checking with mac book
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?
can it be because of OS ? :/
I was testing on Mac myself, so it can happen there
Ah, so I think this is a side-effect of you using Standard accounts. Our docs mention that we create a pop up when the user has a Stripe-owned account and needs to authenticate with us
https://docs.stripe.com/connect/get-started-connect-embedded-components#user-authentication-in-connect-embedded-components
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
Stripe-owned account ?
sorry can you say more what means Standard accounts and Stripe owned ?
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
so in my case creating account from backend making it custom ?
or creating in wrong way ?
This would be specified when creating the account in your backend. Does your code use the type parameter when making the create call?
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.
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
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.
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
I thought they said a pop up (new window/new tab) would be opened rather than a modal.
Can you be more specific about what you're showing there? It looks like something opening in a window on top of something else
here you can see how its opened when clicking on add information button
but I know there is a way to load same content in modal
Nope, not if authentication is required, then a pop-up has to be used.
but how can same account open modal in one device and new tab page on another device ?
Can you elaborate? As far as I know that shouldn't be the case.
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
Is that what you're trying to show in that screenshot? If so, that isn't a modal, it's a new tab/window.
ok my bad on wording, how can I achieve new tab/window instead of new tab/tab
sorry again
here is my experience
My understanding is that isn't controllable from code, and is dependent on the settings of the browser being used.
so its because of chrome settings?