【问题标题】:how to accept payment with bitcoin in Ionic如何在 Ionic 中接受比特币付款
【发布时间】: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。

我不知道我是否能够接受带有离子框架的比特币。

【问题讨论】:

标签: ionic-framework bitcoin coinpayments-api


【解决方案1】:

使用 Electrum 钱包可能是一个很好的免费解决方案,Bitpay 也是一个很好的解决方案,但您需要支付 1%。

关注文档:https://electrum.readthedocs.io/en/latest/merchant.html

【讨论】:

    猜你喜欢
    • 2018-06-02
    • 2011-09-21
    • 2014-04-22
    • 1970-01-01
    • 1970-01-01
    • 2016-03-24
    • 1970-01-01
    • 2018-12-12
    • 2012-08-19
    相关资源
    最近更新 更多