#theofenol_unexpected
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/1293934301175484456
๐ 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.
- theofenol_unexpected, 1 hour ago, 128 messages
- theo_defer-invoice, 19 hours ago, 32 messages
- theofenol_docs, 21 hours ago, 11 messages
- theofenol_connect-elements-errors, 2 days ago, 53 messages
Hello
How are you rendering Payment Element here exactly?
i want this link button to dissapear...
Are you passing in the client secret to your elements object?
Or you are using the deferred approach?
stripeElements.value = stripe.value.elements({ clientSecret: paymentData.data.paymentIntent.client_secret })
paymentElement.value = stripeElements.value.create('payment')
paymentElement.value.mount('#payment-element')
client_secret
Gotcha and that client secret is coming from an Invoice?
Got it, can you share the Invoice ID that you are testing with?
Thanks, looking
Ah you are creating this Invoice directly on an Express Connected Account
That is your issue
You can't control the Invoice Settings for an Express account and is one of the reasons we do not recommend using Direct Charges with Express
You should be creating the Invoice on your platform and using Destination Charges here
Yes, or Standard accounts, but in that case the Connected Account user would have to set their Invoice Settings to have Link be off.
Nah, destination is not ok for me because my platform will have huge turnover and will result in large government tax
i m doing a ticketing platform where I get 2-3%
so if i do destination charges, I will end up paying more tax than profit
because there is some stupid law taxing based on turnover instead of profit
...
oh, so they will have to do this on their own?
I don't know anything about tax laws, but in that case it sounds like you want Standard, yes.
can't I (me, the platform) do it when i create their accounts or when I onboard them?
No, for Standard accounts they have their own account and full Dashboard so they manage their account
What you can do is specify payment_settings.payment_method_types when you create your Invoice
And you can just specify card there
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
That will then not use the default Invoice Settings
yeah, but will Apple and Google still be available?
Yes
const invoice = await stripe.invoices.create({
customer: customer.id,
auto_advance: false,
application_fee_amount: req.finerFee,
payment_settings: {
payment_method_types: ['card'],
},
},
{
stripeAccount: req.connectedAccountId,
});
Looks fine
confirm it works, thanks
i still need to figure out how to make things easier with standard ๐ฆ
You should still use Standard Accounts here
yeah but...
see
the issue is that my customers are event organizers and restaurant owners
and i do not want to have a difficult onboarding process for them
Up to you, but that is the recommendation
basically right now, they sign up on my platform and then i open the stripe onboarding page for them
and they just add everything there
You do the same thing with Standard
yeah - but they will have to enter into the dashboard
No
And no, they won't have to enable/disable anything if you are specifying payment_settings.payment_method_types
so, basically, I can specify all their settings when onboarding them>?
No you don't specify their settings, but you can control the payment method types shown, regardless of their settings, via payment_settings.payment_method_types
i ll try... thanks!
i thoguht about
invoices for example
if they are enabled by default or not
I want to avoid them having to use dashboard to enable invoices
Invoices are enabled by default