#matiullahpro_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/1423425886279045151
๐ 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.
- matiullahpro_connect-tax-express, 8 minutes ago, 12 messages
Hi ๐
I'm stepping in as my colleague needs to go soon
What exactly do you want your Connected Accounts to set up?
Are you saying you already did this part? https://docs.stripe.com/tax/tax-for-marketplaces#set-up
yes
What do you want the connect accounts to provide?
let them add tax information
And what account type or configuration are you using?
express onboarding connect
The code you shared looks like you are using Connect Embedded Components.
Can't you use the Tax Settings component? https://docs.stripe.com/connect/supported-embedded-components/tax-settings
There is also a separate component for managing Tax registrations: https://docs.stripe.com/connect/supported-embedded-components/tax-registrations
let me try it.
<script src="https://connect-js.stripe.com/v1.0/connect.js" async></script>
<div id='stripetaxcontainer'> </div>
<script>
window.StripeConnect = window.StripeConnect || {};
StripeConnect.onLoad = () => {
const stripeConnectInstance = StripeConnect.init({
publishableKey: 'pk_test_51QeJnwD1mw6NJ7wC1cK0YQcTJoF3s42mnbd8A7HTAkuRew91edypdzFYVrt1U6MCvzxwRspSVbZLT9r3ZJg7Jewa002V4qxZJU', // Use curly braces for PHP variable inside JavaScript
fetchClientSecret: 'accs_secret__TAF326ufaQ1KR1vTd369f3efov2K1fpHjyIJCLEgAWCeqeQ', // Define the fetchClientSecret function or variable
});
const container = document.getElementById('stripetaxcontainer');
const taxSettings = stripeConnectInstance.create('tax-settings');
container.appendChild(taxSettings);
};
</script>
check this
๐งโ๐ป How to format code on Discord
Inline code: wrap in single backticks (`)
This:
The variable `foo` contains the value `bar`.
Will turn into this:
The variable
foocontains the valuebar.
Code blocks: wrap in three backticks (```)
Also, you can specify the language after the first three backticks to get syntax highlighting.
This:
```javascript
function foo() {
return 'bar';
}
```
Will turn into this:
function foo() {
return 'bar';
}```
Notes about **code blocks**:
- Specifying the language is optional (e.g., you can omit `javascript` in the example above)
- If you don't specify the language you won't get syntax highlighting
- When you're inside a code block (after you type \`\`\`) the `Return`/`Enter` key will add a new line instead of sending your message
- Once you end the code block `Return`/`Enter` works normally again
You can [read more about message formatting on Discord's website.](https://support.discord.com/hc/en-us/articles/210298617)
client secret it passing but still it is showing same error
<script src="https://connect-js.stripe.com/v1.0/connect.js" async></script>
<div id='stripetaxcontainer'> </div>
<script>
window.StripeConnect = window.StripeConnect || {};
StripeConnect.onLoad = () => {
const stripeConnectInstance = StripeConnect.init({
publishableKey: 'pk_test_51QeJnwD1mw6NJ7wC1cK0YQcTJoF3s42mnbd8A7HTAkuRew91edypdzFYVrt1U6MCvzxwRspSVbZLT9r3ZJg7Jewa002V4qxZJU', // Use curly braces for PHP variable inside JavaScript
fetchClientSecret: 'accs_secret__TAF326ufaQ1KR1vTd369f3efov2K1fpHjyIJCLEgAWCeqeQ', // Define the fetchClientSecret function or variable
});
const container = document.getElementById('stripetaxcontainer');
const taxSettings = stripeConnectInstance.create('tax-settings');
container.appendChild(taxSettings);
};
</script>
check this
Uncaught Error: To initialize Connect embedded components, you must provide either a client secret or a function to fetch the client secret. Please refer to our documentation for more information: https://stripe.com/docs/connect/get-started-connect-embedded-components
The error suggests your code is not properly configured
Your fetchClientSecret value should be a function, like we show here: https://docs.stripe.com/connect/get-started-connect-embedded-components?platform=web#load-and-initialize-connect.js