#talon-connect-onhold-payments
1 messages · Page 1 of 1 (latest)
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
Approve the payout? Or approve the payment?
So when a payment comes in for >$100, you want to automatically create a payout for it?
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?
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.
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"}}},
)
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.