#bart-payout-schedule

1 messages ยท Page 1 of 1 (latest)

unique sableBOT
rocky vortex
low solstice
#

I don't see where I can disable auto payout

#

could you give me an example script in go to disable autopayout for a connected account

rocky vortex
#

hmm I don't have an example script but disabling auto payouts is accomplished by updating an account's payout interval to manual

low solstice
#

yes but the API isnt that clear on doing that

#

like this makes no sense, could you transfer this threat to someone who can help me with the script

#

    params := &stripe.AccountParams{
        Settings.Payouts: "",
    }
    a, _ := account.Update(
        "acct_1MCDn7GhCZPII3sx",

        params,
    )

    fmt.Println(a.PayoutsEnabled)```
#

like nothing is shown how to do it

#

it just says settings.payout on the API docs

rocky vortex
low solstice
#
        Settings: stripe.Payout{
            Automatic: *stripe.Bool(false),
        },
    }
    a, _ := account.Update(
        "acct_1MCDn7GhCZPII3sx",
        params,
    )```
#

i managed to get that far which COULD be correct not sure

#

but returns that error, these docs fr need to be more descriptive and have more code snipites, i had to email stripe to correct several docs that where missing information or inaccurate information

#

yea this is quite impossible, the docs are basicaly bs

#

could you please transfer me to someone who can help

chilly python
#

๐Ÿ‘‹ try: params := &stripe.AccountParams{ Settings: &stripe.AccountSettingsParams{ Payouts: &stripe.AccountSettingsPayoutsParams{ Schedule: &stripe.AccountSettingsPayoutsScheduleParams{ interval: stripe.String("manual") }, } } } a, _ := account.Update( "acct_1MCDn7GhCZPII3sx", params, )

#

Our documentation isn't going to list out every iteration of every set of params

#

It is understood that you as a developer are familiar with GO and how to navigate these

low solstice
#

i had to modify your code a little since the synax was wrong but it worked

#

tank you!

chilly python
#

๐Ÿ‘

#

Happy to help!

low solstice
#

thakn you so much, take care!

chilly python
#

You too

low solstice
#

one second

#

it changed from daily

#

but should it still say 2 day rolling basis?

heady mountain
#

bart-payout-schedule

chilly python
#

Yes that is the delay days for how long until funds are available