#bart-payout-schedule
1 messages ยท Page 1 of 1 (latest)
ah, there is no PayoutSchedule. the payout details are nested under Settings: https://stripe.com/docs/api/accounts/update?lang=go#update_account-settings
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
hmm I don't have an example script but disabling auto payouts is accomplished by updating an account's payout interval to manual
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
settings[payouts][schedule][interval] will need to be set to manual. Does this snippet help? https://stripe.com/docs/connect/manual-payouts (switch to the Go tab)
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
๐ try: params := &stripe.AccountParams{ Settings: &stripe.AccountSettingsParams{ Payouts: &stripe.AccountSettingsPayoutsParams{ Schedule: &stripe.AccountSettingsPayoutsScheduleParams{ interval: stripe.String("manual") }, } } } a, _ := account.Update( "acct_1MCDn7GhCZPII3sx", params, )
If you are confused by the types used here you will need to refer to our SDK. For instance you can see the types/params for the Account params here: https://github.com/stripe/stripe-go/blob/97ff2ea2adaae34eeb20148d8054bfaccee1d0b1/account.go#L142
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
i had to modify your code a little since the synax was wrong but it worked
tank you!
thakn you so much, take care!
You too
bart-payout-schedule