PHP:通过Stripe Connect API添加外部_帐户?

PHP:通过Stripe Connect API添加外部_帐户?,php,Php,我正试图通过PHP API将外部_帐户添加到stripe connect帐户 我发现: 所以我继续写我自己的代码如下: $acct = \Stripe\Account::create(array( "country" => "GB", "type" => "custom", "email" => "email@mail.com" 'external_account' => array(

我正试图通过PHP API将外部_帐户添加到stripe connect帐户

我发现:

所以我继续写我自己的代码如下:

$acct = \Stripe\Account::create(array(
        "country" => "GB",
        "type" => "custom",
        "email" => "email@mail.com"
        'external_account' => array(
            "country" => "US",
            "currency" => "usd",
            "account_holder_name" => 'Jane Austen',
            "account_holder_type" => 'individual',
            "routing_number" => "111000025",
            "account_number" => "000123456789"
        )
    ));
但当我运行该代码时,会出现以下错误:

[Sun Aug 13 05:30:21 2017] [warn] [client 82.43.186.69] mod_fcgid: stderr: PHP Parse error:  syntax error, unexpected ''external_account'' (T_CONSTANT_ENCAPSED_STRING), expecting ')' in /index.php on line 30
第30行是这样的:

'external_account' => array(

有人能就这个问题提出建议吗?

在这种情况下,在“email”字段后面有一个简单的

$acct=\Stripe\Account::create(数组)(
“国家”=>“GB”,
“类型”=>“自定义”,
“电子邮件”=>”email@mail.com“//数组(
“国家”=>“美国”,
“货币”=>“美元”,
“账户持有人姓名”=>“Jane Austen”,
“账户持有人类型”=>“个人”,
“路由号码”=>“111000025”,
“账号”=>“000123456789”
)
));

添加后,错误就会消失。

我认为电子邮件字段后缺少逗号“,”。请不要只指出印刷问题或缺少字符就发布答案。这些答案不太可能对未来的访客有所帮助,因为它们是OP的代码所特有的。取而代之的是,根据。好的,我们将记住未来。谢谢你指出这一点。
$acct = \Stripe\Account::create(array(
      "country" => "GB",
      "type" => "custom",
      "email" => "email@mail.com"   // <--- missing ','
      'external_account' => array(
          "country" => "US",
          "currency" => "usd",
          "account_holder_name" => 'Jane Austen',
          "account_holder_type" => 'individual',
           "routing_number" => "111000025",
           "account_number" => "000123456789"
       )
   ));