#hamid_error

1 messages · Page 1 of 1 (latest)

meager dewBOT
#

👋 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/1417304169089470515

📝 Have more to share? Add more details, code, screenshots, videos, etc. below.

pallid bronze
acoustic cave
pallid bronze
#

Looks like you are trying to do a Connect onboarding. Can you share with me the connected account ID?

acoustic cave
#

let me connect to dashboard, give me a sec

#

can't you see from email address

#

as user tried multiple times and got create multiple accounts

#

with same email address

pallid bronze
#

Ok, so you created an account link for this connected account, and you redirected them to the account link URL but they can't proceed further?

acoustic cave
#

yup, exactly, see the error in video plz

#

The Stripe Connect error in the video says:

“Se produjo un error desconocido al intentar autenticarse. Inténtalo de nuevo o ponte en contacto con el servicio de asistencia.”

Translation:
“An unknown error occurred while trying to authenticate. Please try again or contact support.”

pallid bronze
#

Can you create a new account link, don't open the URL yet and let me visit and see if I can reproduce the issue?

#

Let me know when the account link is created, I can get the URL from your Dashboard.

acoustic cave
#

basically there are couple of important things.

  1. this is production issue, not sandbox, so i can't create
  2. second thing is that its create via rails method and then redirected automatically to stripe site.
  3. I just checked dashboard on 11 sep this user was created successfulky javier.zaleta@grupo-tm.com,
  4. it is working fine in sandbox.
  5. can't you see error or reason for that particular account?
  6. Lastly and most important thing javier.zaleta@grupo-tm.com this is US account and the error one is MX account, that could be the reason? but what is the actual error?
pallid bronze
#

What do you mean by " its create via rails method" ?

acoustic cave
#

for example


country_code =
        @carrier_company.users.first&.bank_country.presence ||
        @carrier_company.country_code ||
        "US"

      clean_phone   = get_clean_phone(account_info[:phone], country_code)
      user          = @carrier_company.users.first
      account_type  = account_info[:account_type] || 'company'
      common_address   = account_info[:address]

      # 👇 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)
#

then in second step

account_link = Stripe::AccountLink.create({
        account: @carrier_company.stripe_account_id,
        return_url: return_url,
        refresh_url: refresh_url,
        type: 'account_onboarding'
      })
pallid bronze
#

That's the code for account creation. What I asked is to create an account link. You don't need to create a new account to create a account link.

acoustic cave
#

should I create again? for you? from console?

pallid bronze
#

Yes, if you can. So that I can visit the account link URL and see if I can replicate the issue

acoustic cave
#

okie give me a short moment plz

#

let me connect to product and create it for you

pallid bronze
#

Ah, the accoutn link is already consumed by discord.

#

Just create the account link and don't share with me the URL

acoustic cave
#

okie

#

created

pallid bronze
#

I can't replicate the issue

#

Can you send another account link URL to your user and ask them to try again?

acoustic cave
#

he might have entered caps email

#

have you seen email?

pallid bronze
#

I used the same email address that you shared earlier

acoustic cave
#

I need to tell the reason to the client too. can you tell the reason why he got error

#

but he typed in capital letters that might be the reason?

#

if you see user tried 5 6 times already today

pallid bronze
#

Can you ask the user to disable all browser extensions or use a different web browser to proceed with the onboarding.

acoustic cave
#

okie, but no special error?

#

you can't see the logs etc?

pallid bronze
#

I tested with upper case and I don't see error either

#

I don't have the logs since I can't replicate the problem.

acoustic cave
#

so what should we do now? give user a link again and ask user to do it again?

pallid bronze