#_api

1 messages ยท Page 1 of 1 (latest)

hasty gardenBOT
lethal fiberBOT
#

Below are links to other discussions we've had with you in the past week in case you want to review that information. If your question is related to one of these previous discussions, please provide a comprehensive summary of the current state and what you need help with now. We help many users simultaneously, so a summary allows us to resolve your issue as soon as possible.

  • _api, 20 hours ago, 19 messages
  • _api, 1 day ago, 20 messages
  • _api, 6 days ago, 9 messages
  • _api, 6 days ago, 9 messages
hasty gardenBOT
#

๐Ÿ‘‹ Welcome to your new thread!

โฒ๏ธ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.

โฑ๏ธ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always start a new thread if you have another question.

๐Ÿ”— This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1245631565237588035

๐Ÿ“ Have more to share? Add more details, code, screenshots, videos, etc. below.

iron mason
#

Here is my code

#
createAccParams := &stripeAPI.AccountParams{
        Country:      stripeAPI.String(strings.ToLower(newCountryCode.Alpha2())),
        BusinessType: stripeAPI.String(string(stripeAPI.AccountBusinessTypeIndividual)),
        Individual: &stripeAPI.PersonParams{
            FirstName: stripeAPI.String(strings.TrimLeft(strings.TrimRight(model.FirstName, " "), " ")),
            LastName:  stripeAPI.String(strings.TrimLeft(strings.TrimRight(model.LastName, " "), " ")),
        },
        Metadata: map[string]string{
            "firaManId": model.FiraManId.Hex(),
            "name":      strings.TrimLeft(strings.TrimRight(fmt.Sprintf("%s %s", model.FirstName, model.LastName), " "), " "),
        },
        Settings: &stripeAPI.AccountSettingsParams{
            Payouts: &stripeAPI.AccountSettingsPayoutsParams{
                Schedule: &stripeAPI.AccountSettingsPayoutsScheduleParams{
                    Interval: stripeAPI.String(string(stripeAPI.AccountSettingsPayoutsScheduleIntervalManual)),
                },
            },
        },
        Controller: &stripeAPI.AccountControllerParams{
            StripeDashboard: &stripeAPI.AccountControllerStripeDashboardParams{
                Type: stripeAPI.String(string(stripeAPI.AccountControllerStripeDashboardTypeNone)),
            },
            Fees: &stripeAPI.AccountControllerFeesParams{
                Payer: stripeAPI.String(string(stripeAPI.AccountControllerFeesPayerApplication)),
            },
            Losses: &stripeAPI.AccountControllerLossesParams{
                Payments: stripeAPI.String(string(stripeAPI.AccountControllerLossesPaymentsApplication)),
            },
            RequirementCollection: stripeAPI.String(string(stripeAPI.AccountControllerRequirementCollectionApplication)),
        },
    }
    if model.Email != "" {
        createAccParams.Email = stripeAPI.String(strings.ToLower(strings.TrimSpace(model.Email)))
        createAccParams.Individual.Email = stripeAPI.String(strings.ToLower(strings.TrimSpace(model.Email)))
    }
    if model.PhoneNumber != "" {
        createAccParams.Individual.Phone = stripeAPI.String(strings.TrimSpace(model.PhoneNumber))
    }
    if model.DateOfBirth != "" {
        newDOB, err := time.Parse("2006-01-02", strings.TrimSpace(model.DateOfBirth))
        if err != nil {
            return nil, errors.New("invalid parameter DateOfBirth")
        }
        createAccParams.Individual.DOB = &stripeAPI.PersonDOBParams{
            Day:   stripeAPI.Int64(int64(newDOB.Day())),
            Month: stripeAPI.Int64(int64(newDOB.Month())),
            Year:  stripeAPI.Int64(int64(newDOB.Year())),
        }
    }

    createAccResult, err := stripeAPIAccount.New(createAccParams)
    if err != nil {
        return nil, err
    }

    _, err = CreateStripeAccountLinkOnboarding(createAccResult.ID)
    if err != nil {
        return nil, err
    }
#

my country is TH

#

Thailand

waxen nebula
#

The country support depends on the controller configurations.

For this specific set of controller configurations, Thailand is not supported.

controller: {
  fees: {
    payer: "application",
  },
  losses: {
    payments: "application",
  },
  requirement_collection: "application",
  stripe_dashboard: {
    type: "none",
  },
}
iron mason
#

would you have any suggestion to change into right controller for support in Thailand

waxen nebula
#

It will be Standard connected account equivalent, or you can create Standard connected account directly:

controller: {
  fees: {
    payer: "account",
  },
  losses: {
    payments: "stripe",
  },
  requirement_collection: "stripe",
  stripe_dashboard: {
    type: "full",
  },
}
iron mason
#

alright, I created Standard connected account as you suggested, It be ok.

#

and how do I do Creating Stripe Connect with business type is individual and will not create new Company Profile (Stripe Company Profile) when finished validation of this account (stripe onboarding)

#

after I validated Stripe Connect, stripe it's created new Profile company (I already delete it). I don't want to create new profile

#

I wants Stripe Connect account be part of this company (in purple highlight)

#

here is validation with stripe onboarding

#

Is it cause from use same email in Main stripe account and Stripe connect?

waxen nebula
#

We only support English in this channel. We are unable to read the Thai in the screenshot in this channel. If the same email address is used for the Standard connected account, that connected account will be listed in your account list

iron mason
#

thank you

waxen nebula
#

No problem! Happy to help ๐Ÿ˜„