简体   繁体   English

在 Flutterwave 中为不同的货币设置不同的金额

[英]Set Different Amounts for Different Currencies in Flutterwave

Hi I am using the flutterwave api gateway to create a payment form which will have different preset amounts in different currencies.嗨,我正在使用 flutterwave api 网关来创建一个支付表单,该表单将具有不同货币的不同预设金额。 for example例如

USD -10 -10 美元

KES-100 KES-100

UGX-1000 UGX-1000

My thoughts were to put a select box and you choose the currency and then enter your details and press pay.我的想法是放置一个选择框,您选择货币,然后输入您的详细信息并按付款。

Would This be possible in asp.net ?这在 asp.net 中可能吗? Anyone done something close to this?有没有人做过类似的事情? How to pass the values to the api?如何将值传递给api?

Its Posible... I have a working prototype... of sorts.它的可能性......我有一个工作原型......各种各样。

I created the values in a select box and made the currency and amounts separately.我在选择框中创建了值,并分别制作了货币和金额。 Then pooled the values and passed them to the api with the preset values currency and amount.然后汇集这些值并将它们传递给具有预设值货币和金额的 api。 The flutterwave api gets this info and serves up the right payment method for that particular currency. flutterwave api 获取此信息并为该特定货币提供正确的付款方式。

<form method="POST" class="payment-form-africa" action="https://checkout.flutterwave.com/v3/hosted/pay">
    <input name="customer[email]" asp-for="email" />
    <input name="customer[name]" asp-for="name"/>
    <input name="tx_ref" asp-for="tx_ref"/>
    <input name="amount" asp-for="amount"/>
    <input name="currency" asp-for="currency"/> 
 <button type="submit">Pay</button>

Thanks everyone.谢谢大家。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM