Amb*_*h B 21 payment-gateway dart flutter
如何在flutter框架中集成支付网关.有没有我可以随时使用的图书馆?我是否需要在iOS和Android中单独执行此操作?在那种情况下,哪个是印度最好的图书馆?
我能够使用webview和flutter_webview_plugin集成Stripe
String test = "Test Charge";
int amount = 100;
@override
Widget build(BuildContext context) {
return new MaterialApp(
home: new WebviewScaffold(
url: new Uri.dataFromString('''
<html>
<head>
<meta name="viewport" content="width=device-width">
</head>
<center>
<body>
<form action="Your Server" method="POST">
<script
src="https://checkout.stripe.com/checkout.js" class="stripe-button"
data-key="pk_test_key"
data-amount="$amount"
data-name="$test"
data-description="My Order"
data-image="https://stripe.com/img/documentation/checkout/marketplace.png"
data-locale="auto"
data-currency="eur">
</script>
</form>
</body>
</center>
</html>
''', mimeType: 'text/html').toString(),
));
}
Run Code Online (Sandbox Code Playgroud)
您需要为实时付款设置服务器。可以找到更多信息:https : //stripe.com/docs/checkout#integration-simple
归档时间: |
|
查看次数: |
17592 次 |
最近记录: |