#soma - payouts

1 messages ยท Page 1 of 1 (latest)

cunning ocean
#

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

#

note that this is a list of hashes, with an entry per currency

crude perch
#

right

cunning ocean
#

so the [0] is merely pulling the first currency

crude perch
#

that is correct

#

my question is related to making a payout programmatically

cunning ocean
#

ok

crude perch
#

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

cunning ocean
#

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

crude perch
#

I am thinking on looping through all the avaliable hashes and allowing the user to select the currency and make a payout from that

cunning ocean
#

here are your available balances that can be paid out, pick what you want

crude perch
#

so, that is the way to go>

#

thanks mr synthirder

cunning ocean
#

my pleasure โœŒ๏ธ