#talon-connect-onhold-payments

1 messages · Page 1 of 1 (latest)

frozen loom
#

Can you elaborate on what you mean by "on hold"?

worldly snow
#

I would like to approve the payout manually if the payment is 100$ above

#

so for example when the session is created for the payment. I can pass this info dynamically that payouts are safe/unsafe

frozen loom
#

Approve the payout? Or approve the payment?

worldly snow
#

approve the payout

#

sorry for mixing them

frozen loom
#

So when a payment comes in for >$100, you want to automatically create a payout for it?

worldly snow
#

i will have some internal risk thresholds which will lemme know that if transaction is safe or not before the payment is even made

#

so for example: if the checkout session request is more than 100$ my server will know it will like to mark that transaction as unsafe. So that the payouts for that transactions are not made

#

mark the payout to be manual?

frozen loom
#

So you would want to make sure that your account is on manual payouts firstly. via Settings --> Bank accounts and scheduling. That will make sure that payouts are not created automatically for successful charges.

worldly snow
#

aha got it. so i simply make that settings to be manual for that specific account and stop all future transaction

#

stripe.Account.modify(
"{{CONNECTED_STRIPE_ACCOUNT_ID}}",
settings={"payouts": {"schedule": {"interval": "manual"}}},
)

frozen loom
#

Yep. It just stops payouts from being created automatically on the account.

From there, you would need to track internally how much you can make for payouts. For example, you would need to cache all the charges and their corresponding amounts so that, on any given day, you know the total of all low risk charges, so you can create a payout for that amount.

worldly snow
#

will marking the account as automatic back again will send all the pending payouts?

#

or I need to do a manual payout and the settings will not effect old payouts?