#hamid_api

1 messages ยท Page 1 of 1 (latest)

half cedarBOT
#

๐Ÿ‘‹ 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/1405716655262138448

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

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.

sweet glacier
#

hi there, give me awhile to take a look

tiny onyx
#

sure thing, thanks

sweet glacier
#

But in this request (req_qZvo6dNInMUdmt) you're creating a Custom account, which your Stripe account isn't configured to do.

#

Are you intending to create Custom accounts or Express accounts?

tiny onyx
#

basically if you can see my first chat with one of your guys he told me to do it.

let me brief again and give you short summary/history, so you can answer better.

sweet glacier
#

you have three chat history with us, could you share with me the specific one you're referring to?

tiny onyx
#

Basically I want user to connect with my US platform.

and user can be from US or MX

so i want connectivity like this

US -> US
US -> MX

When user were trying to connect with MX, I was getting some agreement error and one of you helped me to fix that and asked me to use different params.

so I did this

# ๐Ÿ‘‡ Country-based account creation
      account_params =
        if country_code == 'US'
          {
            type: 'express',
            country: country_code,
            email: account_info[:email],
            business_type: account_type,
            capabilities: {
              card_payments: { requested: true },
              transfers:     { requested: true }
            }
            # NOTE: no tos_acceptance: { service_agreement: 'recipient' } for US
          }
        else
          {
            type: 'custom',
            country: country_code,
            email: account_info[:email],
            business_type: account_type,
            capabilities: { transfers: { requested: true } },
            tos_acceptance: { service_agreement: 'recipient' }
            # NOTE: tos_acceptance: { service_agreement: 'recipient' } for mx
          }
        end

      if account_type == 'individual'
        account_params[:individual] = {
          first_name: user.first_name,
          last_name:  user.last_name,
          phone:      clean_phone,
          address:    common_address
        }
      else
        account_params[:company] = {
          name:   account_info[:business_name],
          phone:  clean_phone,
          address: common_address
        }
      end

      account = Stripe::Account.create(account_params)

CAN YOU PLEASE SEE MY FIRST CHAT AS WELL, THAT WOULD BE MORE HELPFUL.

SECONDLY, WITH THIS CODE, I HAVE TESTED BOTH MX AND US CONNECTED ACCOUNTS.

sweet glacier
#

Okay wait

#

Sorry for the confusion, I believe you're actually missing a step when setting up Stripe Connect for your account

#

there's an outstanding acknowledgement you haven't completed, under Ongoing seller compliance acknowledgement

#

could you try completing the acknowledgement and try again.

tiny onyx
#

let me see, kindly stay with me

#

okie, I jsut need to mark checkbox in order to complete that, right?

sweet glacier
#

yes

tiny onyx
#

okie completed, can you please verify, now

sweet glacier
#

You can retry making this request (req_qZvo6dNInMUdmt) again and see if it errors

tiny onyx
#

so now i don't have to do anything else, right? with respect to code, coz, everything was working in sandbox?

sweet glacier
#

yes

#

no code change right now

tiny onyx
#

I can't make, ill let client know, thanks.