#chukd_best-practices

1 messages ¡ Page 1 of 1 (latest)

main muralBOT
#

👋 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/1244890911159226440

📝 Have more to share? Add more details, code, screenshots, videos, etc. below.

drifting jacinth
molten vigil
#

hi Jack, my question has nothing to do with Payouts. It's about Transfers.

drifting jacinth
#

Ok, then how do you let your connected account to delete their account?

molten vigil
#

The user can add or delete multiple Connected accounts on my site (they see them all on a page that shows them in a list). There will be just 1 default account that will be the one used to send transfers. They have the option to delete any of their accounts at any time.

drifting jacinth
molten vigil
#

yes I'm aware of that...

#

this scenario would be in a case where they have a zero balence.

drifting jacinth
#

Since your users can only delete their accounts through your platform, you can implement something to disable account delete option if they have only only account with you.

molten vigil
#

I'm not doing that...

#

I just need a little clarification to my original question.

drifting jacinth
#

Your question is about what happen if there's no account to send the transfer to, I believe the most effective way to solve this problem to ensure there's always an account available

molten vigil
#

no! my question is about what conditions are important to look for when creating a transfer.

#

specifically "CapabilityTransfers" and "PayoutsEnabled", should these conditions be "active" and "true" in order for me to ensure a successful transfer?

#

ex. If I want to transfer $10 to a Connected Account, should I make sure the account has a "CapabillitiesTransfers" status of "active"?

#

should I also ensure taht "PayoutsEnabled" is "true"?

#

or should I not sorry about the state of either of these 2 properties and just try and send over the $10.

#

this is a question about best practives

#

*practices

drifting jacinth
#

Not necessary, you can still perform a transfer to a connected account even though its payout_enabled is false. But I don't think it's a good practice because the connected account can't payout the funds.

#

Does this answer your question?

molten vigil
#

no. I'm aware you can still send a transfer to an account that has payout_enabled set to false. What about CapabillitiesTransfers? What if the state is not active? Is this state that can be changed to active by the user editing some of his account info and resubmitting it? More specifically, what changes the state of CapabilitiesTransfers?