#z_api

1 messages · Page 1 of 1 (latest)

peak scrollBOT
#

đź‘‹ 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/1300566970500124793

📝 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.

  • z_api, 46 minutes ago, 14 messages
  • z_api, 2 hours ago, 9 messages
west fable
#

I was talking to @Pompey about this

#
const account = await stripe.accounts.create({
        email: req.body.email,
        controller: {
          stripe_dashboard: {
            type: "none",
          },
        },
        capabilities: {
                    card_payments: {
                        requested: true,
                    },
                    transfers: {
                        requested: true,
                    },
                },
                business_profile : {
                    product_description: req.body.productDescription
                },
        country: "US",
      });```
#

anything i'm doing wrong?

#

acct id: acct_1QEzu8RVeuKStmZE

livid palm
#

Hi there, give me a few minutes to catch up

west fable
#

Sure, refer to the thread that was 46 minutes ago, 14 messages

livid palm
#

I won't read the full thread. Instead, can you share where you're currently blocked?

west fable
#

Sure

#

Per the documentation,
Additionally, if you onboard an account without its own website and your platform provides the account with a URL, prefill the account’s business_profile.url. If the account doesn’t have a URL, you can prefill its business_profile.product_description instead.

livid palm
#

Can you share a link to where you're reading that exactly?

west fable
#

However, on the embedded onboarding, still prompts for a URL and won't let me continue

west fable
#

Check the bottom of Create an account and prefill information

livid palm
#

Got it, thanks

west fable
#

honestly, I haven't tried that since it was test data. Let me see

#

Still asks for it

#

Account ID: acct_1QF0XFRZyZpLt3FZ

livid palm
#

Thanks for testing this

west fable
#

Pompey said that this configuration was working on their end

#

Was wondering what is different between our configurations

livid palm
#

Out of curiosity, are you setting a value for setCollectionOptions when creating the AccountSession?

west fable
#

Let me check

#
async onboardAccount(req, res) {
        try {
            const account = req.body.account;
        
            const accountSession = await stripe.accountSessions.create({
              account: account,
              components: {
                account_onboarding: { enabled: true },
                account_management: { enabled: false },
                notification_banner: { enabled: false },
              },
            });
            console.log(accountSession)
            res.json({
              client_secret: accountSession.client_secret,
            });
        } catch (error) {
            console.error(
              "An error occurred when calling the Stripe API to create an account session",
              error
            );
            res.status(500);
            res.send({ error: error.message });
        }
    }```
#

I am not

livid palm
#

Let me do a quick test on my end

west fable
#

sure

livid palm
#

I see the same thing you do, actually

west fable
#

That's a current blocker I am facing since my clients do not have a website

livid palm
#

After I create the account, business_profile.url is included in the requirements hash

west fable
#

That is weird

west fable
livid palm
west fable
#

Oh, yes I do see it

#
"currently_due": [

"business_profile.mcc",
"business_profile.support_phone",
"business_profile.url",
"business_type",
"external_account",
"representative.dob.day",
"representative.dob.month",
"representative.dob.year",
"representative.email",
"representative.first_name",
"representative.last_name",
"settings.payments.statement_descriptor",
"tos_acceptance.date",
"tos_acceptance.ip",

],
livid palm
west fable
#

If the account doesn’t operate a website to promote their business, sell products, or accept payments, they’re required to provide business_profile.product_description instead.

#

A product description needs to detail the type of products being sold as well as the manner in which the account’s customers are being charged (i.e. in person transactions).

#

Also says this in the note ^

livid palm
#

Which note exactly?

west fable
#

In the "Note" section

livid palm
#

Ah, I see

west fable
livid palm
#

I know our financial partners have requested more information as part of "know your customer" obligations so I'm not sure how exactly this meshes with providing a URL or a description as part of onboarding, not both

west fable
#

Ah I see

livid palm
west fable
#

Is there some analysis done the the product description and if it isn't "valid" then it'll ask for a business url?

west fable
#

This is what your AI assistance provides: