#soma - payouts
1 messages ยท Page 1 of 1 (latest)
Hello! Just starting a thread for you -- I'll review and respond as soon as I can ๐
This is merely inspecting the available the balance to see what can be paid out
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
note that this is a list of hashes, with an entry per currency
right
so the [0] is merely pulling the first currency
ok
is it safe to think the first item in the array is the way to go?
according to the example that is correct, but the example uses only the usd currency
Well, that will create a payout for the amount available in the first currency
if you have accounts accruing balance in multiple currencies, you'll need different logic
I am thinking on looping through all the avaliable hashes and allowing the user to select the currency and make a payout from that
that's one option, yup!
here are your available balances that can be paid out, pick what you want
my pleasure โ๏ธ