我正在使用带有离子框架的比特币建立一个电子商务网站,现在我的问题是我希望我的用户能够用比特币付款,我在网上搜索了支持离子或角度的比特币支付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。
我仍然不知道我将能够使用离子框架接受比特币。
答案 0 :(得分:0)
使用Electrum钱包可能是一个很好的免费解决方案,Bitpay是一个很好的解决方案,但您需要支付1%。
遵循文档:https://electrum.readthedocs.io/en/latest/merchant.html