gpt4 book ai didi

flutter - 有没有办法在 Flutter 应用程序中使用 Stripe 实现 iDeal Payment?

转载 作者:行者123 更新时间:2023-12-03 03:04:25 24 4
gpt4 key购买 nike

我正在尝试实现 iDeal payment使用 stripe 的方法在我的flutter app ,但我被困住了。

What i have tried:


RaisedButton(
child: Text("Create Source"),
onPressed: () {
StripePayment.createSourceWithParams(SourceParams(
type: 'ideal',
amount: 1099,
currency: 'eur',
returnURL: 'example://stripe-redirect',
)).then((source) {
_scaffoldKey.currentState.showSnackBar(SnackBar(content: Text('Received ${source.sourceId}')));
setState(() {
_source = source;
});
}).catchError(setError);
},
),

我已尝试并成功创建了 example 中所述的付款来源。应用程序
我正在使用 flutter 插件: stripe_payment但我不知道如何使用它并完成付款。

请帮忙!

最佳答案

在服务器上创建 PaymentIntent 或 Charge,因为它们需要 key ,因此无法在客户端完成整个流程。

关于flutter - 有没有办法在 Flutter 应用程序中使用 Stripe 实现 iDeal Payment?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/60778671/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com