#slobfntsy_api
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/1311318644273184820
๐ 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.
- slobfntsy_docs, 21 hours ago, 27 messages
- slobfntsy_docs, 2 days ago, 11 messages
- slobfntsy_docs, 5 days ago, 29 messages
๐ happy to help
Hi @merry lark thank you for the help today!
how are you initializing the stripe instance on the frontend?
Just to share some background , after talking with your coleagues , they recommended to change the charge type from "direct" to "destination"
charge
ok, if you're still passing the StripeAccount header while initializing the stripe instance
ok let me check
then this would explain why you're getting the No such payment_page error
because your frontend is trying to retrieve a payment page on the connected account whereas yours was created on the platform directly
yes sure
as i mentioned until now we have used "direct" and we were setting application_fee_amount , application_fee_percent for the charge of the platform. Now that should be done via transfer_data > amount , amount_percent. We were setting the desination to our platform accountId , however all these request were failing with error, destination cannot be the same account. Now i have changed the destination in transfer_data to be the connected_account, but then the ammout and amount_percent , should express the amount or percentage that the platform needs to transfer to the connected_account e.g. if the platform charge is 10% , and the amount is 100 , then amount should be =90 in case of "destination" charge is that correct understanding ?
when you change from direct charge to destination charge you should also remove the StripeAccount header in the backend calls
we did that and we use on_behalf_of
hi! I'm taking over this thread. let me know if you have other questions.
Hi @clear perch thanks i think @merry lark clarified this for me i will do the necessery changes and test again thank you for the help i will comeback with question at later point