gpt4 book ai didi

java - Android-Stripe 在创建帐户时添加缺少的参数

转载 作者:行者123 更新时间:2023-12-04 07:47:56 27 4
gpt4 key购买 nike

我试图实现 strip 支付网关 .一切都很顺利。我能够在我的 strip 仪表板中为用户创建连接帐户,但问题是我缺少以下参数

  • 网站
  • SSN
  • 行业

  • 现在我想知道如何在创建帐户时添加这些参数。
    我已经添加了来自条纹仪表板的屏幕截图,这里是 代码 :
     Map<String, Object> dob =
    new HashMap<>();
    dob.put("day", "12");
    dob.put("month", "1");
    dob.put("year", "1991");
    Map<String, Object> address =
    new HashMap<>();
    Map<String, Object> address_pram =
    new HashMap<>();
    address_pram.put("city", "Baton Rouge");
    address_pram.put("line1", "1 Calais Ave");
    address_pram.put("postal_code", "70806");
    address_pram.put("state", "Louisiana");
    address.put("address", address_pram);
    address.put("dob", dob);
    address.put("email", "ahmad@example.com");
    address.put("first_name", "ahmad");
    address.put("last_name", "bajwa");
    address.put("phone", "+12015551023");
    //address.put("website", "www.goldenkeystone.com");
    //address.put("industry", "");
    // address.put("ssn", "000000000");
    Map<String, Object> acceptance =
    new HashMap<>();
    acceptance.put("date", System.currentTimeMillis() / 1000L);
    acceptance.put("ip", ipString);
    Map<String, Object> cardPayments =
    new HashMap<>();
    cardPayments.put("requested", true);
    Map<String, Object> transfers = new HashMap<>();
    transfers.put("requested", true);
    Map<String, Object> capabilities =
    new HashMap<>();
    capabilities.put("card_payments", cardPayments);
    capabilities.put("transfers", transfers);
    Map<String, Object> params = new HashMap<>();
    params.put("type", "custom");
    params.put("country", "US");
    params.put("tos_acceptance", acceptance);
    params.put("business_type", "individual");
    params.put("individual", address);
    params.put("capabilities", capabilities);
    Account account = Account.create(params, requestOptions);
    enter image description here
    注意:如果仍有问题不清楚,如果您添加您的贡献,我会很高兴。

    最佳答案

    Stripe 将在入职期间通过帐户链接收集这些数据和其他敏感信息:stripe.com/docs/connect/connect-onboarding
    这不是您可以传递给 Accounts API 的东西。请参阅此处了解更多信息:https://stripe.com/docs/connect/collect-then-transfer-guide?platform=web#create-an-account-link

    关于java - Android-Stripe 在创建帐户时添加缺少的参数,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/67124321/

    27 4 0
    Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
    广告合作:1813099741@qq.com 6ren.com