#slobfntsy_api

1 messages ยท Page 1 of 1 (latest)

pliant driftBOT
#

๐Ÿ‘‹ 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.

merry lark
#

๐Ÿ‘‹ happy to help

fleet wing
#

Hi @merry lark thank you for the help today!

merry lark
#

how are you initializing the stripe instance on the frontend?

fleet wing
#

Just to share some background , after talking with your coleagues , they recommended to change the charge type from "direct" to "destination"

#

charge

merry lark
#

ok, if you're still passing the StripeAccount header while initializing the stripe instance

fleet wing
#

ok let me check

merry lark
#

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

fleet wing
#

ok i see i will check

#

can i have addional question if you have time ?

merry lark
#

yes sure

fleet wing
#

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 ?

merry lark
#

when you change from direct charge to destination charge you should also remove the StripeAccount header in the backend calls

fleet wing
#

we did that and we use on_behalf_of

merry lark
#

perfect

#

but you can still use application fee amount

fleet wing
#

hmm... that was not the case ... there was error

#

let me check the logs

merry lark
pliant driftBOT
clear perch
#

hi! I'm taking over this thread. let me know if you have other questions.

fleet wing
#

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