更新Strip Connect帐户的法人实体 [英] Update stripe connect account's legal entity

查看:67
本文介绍了更新Strip Connect帐户的法人实体的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

由于Stripe PHP库,我正在检索一个已连接的帐户,更新了一些信息并尝试保存它。但是,它会引发以下错误消息:

I'm retrieving a connected account thanks to Stripe PHP library, updating a few information and trying to save it. But, it throws this error message:


该帐户只能使用帐户令牌进行更新,因为它最初是由
创建的带有帐户令牌。 (尝试直接更新参数
'legal_entity'。)

This account can only be updated with an account token, because it was originally created with an account token. (Attempted to update param 'legal_entity' directly.)

这是我的代码:

\Stripe\Stripe::setApiKey('sk_MYSTRIPESECRETKEY');
$account = \Stripe\Account::retrieve(ACCOUNT_ID);
$account['legal_entity'] = array('dob' => array('day' => 01,'month' => 01,'year' => 1970));
$account->save();

我在做什么错了?

推荐答案

解决方案是:创建令牌并用我需要的法人字段填充它。

The solution was: creating a token and filling it with the legal entity fields I needed.

这篇关于更新Strip Connect帐户的法人实体的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆