title: how to accept payment with bitcoin in Ionic
body: <p>I am building an e-commerce website with bitcoin with ionic framework, now my problem is that I want my users to be able to pay with bitcoin, I have searched online for bitcoin payment API that support ionic or angular, but found none, I tried using Coinbase, and others but it doesn't have any API that support angular or ionic.</p>
  <pre class="lang-html prettyprint-override"><code>     &lt;form action=&quot;https://www.coinpayments.net/index.php&quot; method=&quot;post&quot;&gt;
          &lt;input type=&quot;hidden&quot; name=&quot;cmd&quot; value=&quot;_pay_simple&quot;&gt;
          &lt;input type=&quot;hidden&quot; name=&quot;reset&quot; value=&quot;1&quot;&gt;
          &lt;input type=&quot;hidden&quot; name=&quot;merchant&quot; value=&quot;606a89bb575311badf510a4a8b79a45e&quot;&gt;
          &lt;input type=&quot;hidden&quot; name=&quot;currency&quot; value=&quot;USD&quot;&gt;
          &lt;input type=&quot;hidden&quot; name=&quot;amountf&quot; value=&quot;10.00&quot;&gt;
          &lt;input type=&quot;hidden&quot; name=&quot;item_name&quot; value=&quot;Test Item&quot;&gt;
          &lt;input type=&quot;hidden&quot; name=&quot;item_desc&quot; value=&quot;Item Description&quot;&gt;
          &lt;input type=&quot;hidden&quot; name=&quot;want_shipping&quot; value=&quot;1&quot;&gt;
          &lt;input type=&quot;hidden&quot; name=&quot;success_url&quot; value=&quot;http://www.yoursite.com/success&quot;&gt;
          &lt;input type=&quot;image&quot; src=&quot;https://www.coinpayments.net/images/pub/buynow-med.png&quot; alt=&quot;Buy Now with CoinPayments.net&quot;&gt;
        &lt;/form&gt;
  </code></pre>
  <p>I have tried this, but the problem is that it's not bringing the payment page directly and I can't customize it so that I can cancel the transaction, or run a function, its taking me to the CoinPayments website, I want a payment gateway that will bring the payment page like a popup on the page, like a JavaScript API.</p>
  <p>I don't know of anyway that I will be able to accept bitcoin with ionic framework.</p>