【发布时间】:2020-03-03 11:41:37
【问题描述】:
我正在使用带有离子框架的比特币构建电子商务网站,现在我的问题是我希望我的用户能够使用比特币支付,我在网上搜索了支持离子或角度的比特币支付 API,但发现没有,我尝试使用 Coinbase 等,但它没有任何支持 angular 或 ionic 的 API。
<form action="https://www.coinpayments.net/index.php" method="post">
<input type="hidden" name="cmd" value="_pay_simple">
<input type="hidden" name="reset" value="1">
<input type="hidden" name="merchant" value="606a89bb575311badf510a4a8b79a45e">
<input type="hidden" name="currency" value="USD">
<input type="hidden" name="amountf" value="10.00">
<input type="hidden" name="item_name" value="Test Item">
<input type="hidden" name="item_desc" value="Item Description">
<input type="hidden" name="want_shipping" value="1">
<input type="hidden" name="success_url" value="http://www.yoursite.com/success">
<input type="image" src="https://www.coinpayments.net/images/pub/buynow-med.png" alt="Buy Now with CoinPayments.net">
</form>
我试过这个,但问题是它没有直接带来支付页面,我无法自定义它以便我可以取消交易,或者运行一个功能,它把我带到 CoinPayments 网站,我想要一个支付网关,它将像页面上的弹出窗口一样带来支付页面,就像一个 JavaScript API。
我不知道我是否能够接受带有离子框架的比特币。
【问题讨论】:
-
以前从未这样做过,但你见过吗? github.com/bitpay/node-bitpay-client
标签: ionic-framework bitcoin coinpayments-api