javascript - 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?
});
解决方案
您可能希望为此使用 Flutter uni_links
,因为我怀疑您希望它们立即回到您的应用程序中。
推荐阅读
- typescript - 基于参数类获取实例的打字稿定义函数?
- javascript - ParseError when using Nested Cloud Code functions with Promises
- azure-active-directory - Azure AD 将 Id 令牌交换为查询字符串中的访问令牌
- mysql - 错误:将 sql 脚本应用到数据库时出错,错误:1064 检查 Mariadb 服务器手册以获取正确的语法
- javascript - 无法在屏幕上居中反应组件
- php - 使用 PHP 和 AJAX 发送电子邮件不起作用
- sql - 如何在 postgresql 中创建数据透视表
- apache - AH00558:httpd:在创建 VirtualHost 后无法可靠地确定服务器的完全限定服务器名错误
- ios - 创建独立于 Xcode 编译器版本的 ios Swift 框架
- java - 重新抛出异常或调用 System.exit() 结束程序。最佳做法是什么?