如何在Stripe Express入驻流程中预填手机号与企业类型字段
Stripe Express账户预填相关说明
我已经成功预填了邮箱,请问是否可以预填手机号?
我已经成功预填了国家,请问是否可以预填企业类型?
目前在Stripe Express账户入驻流程中,手机号、企业类型无法实现预填,其余字段均可以正常预填。我已参考官方账户更新API文档,现有Java实现代码如下:
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);
内容的提问来源于stack exchange,提问作者Rose
相关产品推荐
相关产品推荐

