【问题标题】:How to prefill Mobile Number, Type of business in stripe express onboarding?如何在 Stripe Express 入职时预填手机号码、业务类型?
【发布时间】:2021-12-11 12:41:13
【问题描述】:

我可以预先填写手机号码吗?因为我已经预先填写了电子邮件

我可以预先填写业务类型吗?因为我已经预先填写了国家

无法在 Stripe Onboarding Express 帐户中预填电话号码、业务类型。但除这些字段外,其他字段正在预填充。 我已经提到: https://stripe.com/docs/api/accounts/update?lang=java 更新账户 API

    Map<String, Object> addressParams = new HashMap<>();
    addressParams.put("country", "AU");
    if (accountInfo.get("companyAddressLine1") != null)
    addressParams.put("line1", accountInfo.get("companyAddressLine1"));
    if (accountInfo.get("companyAddressLine2") != null)
    addressParams.put("line2", accountInfo.get("companyAddressLine2"));
    if (accountInfo.get("companyAddressCity") != null)
    addressParams.put("city", accountInfo.get("companyAddressCity"));
    if (accountInfo.get("companyAddressState") != null)
    addressParams.put("state", accountInfo.get("companyAddressState"));
    if (accountInfo.get("companyAddressPostalCode") != null)
    addressParams.put("postal_code", accountInfo.get("companyAddressPostalCode"));

    Map<String, Object> companyParams = new HashMap<>();
    companyParams.put("address", addressParams);
    if (accountInfo.get("companyPhone") != null)
    companyParams.put("phone", accountInfo.get("companyPhone"));
    if (accountInfo.get("abnNumber") != null)
    companyParams.put("tax_id", accountInfo.get("abnNumber"));
    if (accountInfo.get("companyName") != null)
    companyParams.put("name", accountInfo.get("companyName"));

    Map<String, Object> businessProfileParams = new HashMap<>();
     businessProfileParams.put("support_address", addressParams);
    businessProfileParams.put("product_description","test");

    Map<String, Object> params = new HashMap<>();
    params.put("business_type", "company");
    if (accountInfo.get("companyEmail") != null)
    params.put("email", accountInfo.get("companyEmail"));
    params.put("business_profile", businessProfileParams);
    params.put("company", companyParams);

    Account updatedAccount = account.update(params);

【问题讨论】:

    标签: java express stripe-payments


    【解决方案1】:

    屏幕截图中的电话和电子邮件输入用于 Express 身份验证,并与帐户上的用户相关联。平台无法预填此用户数据。您使用 Accounts API 预先填写的电话和电子邮件与此帐户上的公司/企业相关联。

    是的,您应该能够预先填写业务类型。我建议retrieving the connected account 在创建入职链接之前验证是否已设置business_type

    【讨论】:

    • 我可以预先填写电子邮件。我无法预先填写电话号码。我正在使用帐户 api
    • 对于 business_type,当我将 business_type 设置为“个人”时,它是预填充的,但是当我将 business_type 设置为“公司”时,它是空白的。
    • 我在创建入职链接之前设置了business_type
    • business_type 在您设置为 company 时显示为空白,这听起来像是一个错误,您可能需要联系 Stripe 支持以澄清这是否是预期行为
    • 您不应该在该屏幕截图中预先填写电话号码 afaik
    猜你喜欢
    • 2022-01-14
    • 2021-12-11
    • 2021-08-02
    • 2022-01-12
    • 2018-09-22
    • 2016-09-28
    • 2021-08-16
    • 2022-07-19
    • 2018-02-11
    相关资源
    最近更新 更多