#.dylana
1 messages · Page 1 of 1 (latest)
Hi there
Should work just fine to use quotes with Connect
Have you done any testing yet?
yes i did but i can't retrieve customer from my platform on the connect account
Yeah that's not how it works.
You can clone PaymentMethods from your Platform to a Connected Account
But you don't clone Customers. You just re-create them on your Connected Accounts using the same info.
Are you working with Standard Connected Accounts?
we are working with custom connected accounts
so you are saying that i have to retrieve customer from the platform then i have to create a copy on my connected account and after send the quote?
Okay if you are going to use Custom Connected Accounts then really you want to handle everything on your platfrom and use transfer_data (and potentially on_behalf_of if you want to brand as your Connected Accounts).
Are you familiar with how Destination Charges work?
export const createStripeQuote = async ({ products, sellerId, customerId }: IStripeQuote) => {
const parseProductToLine = () => {
let lines: Stripe.QuoteCreateParams.LineItem[] = []
for (const product of products) {
const line = { price: product.default_price as string, quantity: 1 }
lines = [...lines, line]
}
return lines
}
const quote = await stripe.quotes.create({
customer: customerId,
line_items: parseProductToLine(),
on_behalf_of: sellerId,
transfer_data: {
destination: sellerId
}
})
console.log('quote', quote)
return quote
}
not really
Oh you are already doing this. So you don't need to be creating Customers on the Connected Account
yes but my quote is wrong the informations aren't correct
Going to need more details on that.
so the fisrt is that i don't have any information about the connected account on the quote
after i cant retrive the quote on the connected account
You can override the description as one method of putting info about your Connected Account
And the quote will be on your platform account
So you don't need to retrieve from your Connected Account at all.
After it is accepted and the Subscription begins then the funds will be automatically transferred to the Connected Account
and what if as a connected account i want to update the quote or retrieve all of my previous quotes ?
You control everything from the platform here so it is mostly up to you how you track.
One thing you can do is add metadata to your quotes
So that you can rely on metadata when filtering your data
Is there any cleaner way to do it using the connected accounts ?
Well if you work with Standard Connected Accounts then you can create the quotes directly on the Connected Accounts if you prefer to go that route.
But that also is going to give some control over to your Connected Account users
Like they would then set up their own Subscription retry settings and have access to the full Dashboard
I don't know what to use because i have to keep control over connected account but connected accounts have to access theirs stats
Well then you are already doing the right thing
And you are just going to need to build out the UI to show your users their data
ok thanks you very much
another thing could i custom the quote in way that the term 'quote' is replace by 'commercial propal'
No that's not possible as far as I know
ok thank you have good night