首页 > 解决方案 > Flutter Stripe 如何创建标准连接账户

问题描述

只是一个简单的问题。

我一直在网上寻找支持使用 Flutter 创建标准连接帐户,但我仍然遇到以下问题:

\我应该return_url在我的stripe.accountLink.create()方法中输入什么?根据文档,它是:The URL that the user will be redirected to upon leaving or completing the linked flow.

但它是一个移动应用程序?所以我对应该放在那里的东西有点困惑。

const accountLink = await stripe.accountLink.create({
    account: account['id'],
    type: 'account_oboarding',
    refresh_url: '', // Here I have my https onRequest method
    return_url: '', // <----- what should I put in here?
});

标签: javascriptfirebasegoogle-cloud-functionsstripe-payments

解决方案


您可能希望为此使用 Flutter uni_links,因为我怀疑您希望它们立即回到您的应用程序中。


推荐阅读