如何将外部银行帐户设置为Stripe Connect中的默认帐户?

时间:2018-08-24 09:33:40

标签: php laravel stripe-payments payment-gateway

我正在通过其库在条带化帐户中添加外部银行帐户,我想从我这边在Stripe中将其设置为默认帐户。所以任何人都可以帮助我,无论是否可能。我已经提到了Stripe connect APi。但是我找不到任何解决方案。

下面是我正在使用的链接。

https://stripe.com/docs/api#account_update_bank_account

2 个答案:

答案 0 :(得分:0)

我需要通过我的解决方案API来执行此操作。

$account = \Stripe\Account::retrieve("acct_1D3pnBDRbcBW58lj");
$bank_account = $account->external_accounts->retrieve("ba_1DTppmDRbcBW58ljE9hni34m");
$bank_account->metadata["default_for_currency"] = true;
$bank_account->save();

答案 1 :(得分:0)

我尝试了@Yuri所描述的解决方案,但对我而言无效。

这是行之有效的解决方案:

    Account::updateExternalAccount($merchant_id, $bankAccId, [
        'default_for_currency' => true
    ]);