HTML

Choose the best location in your website's interface for you to place the buy button. Then, insert the following code:

// index.html
<div id="azimuthBuyWithCrypto">
      <script type="text/javascript" src="https://server.azimuth-services.io/azimuthBuyWithCrypto/<your_app_id>.js"></script>
      <script type="text/javascript">
            AzimuthBuyWithCrypto.init({
                  onPaymentSuccessCallback: function handler(e) { 
                        // Your post-payment functionality goes here 
                  },
                  onWalletConnectCallback: function handler(e) { // Optional
                        // Your post-wallet connection functionality goes here 
                  },
                  txnUsdAmount: txnUsdAmount // Optional. For a fixed price txn flow, use this parameter. For user input txn flow, remove it 
            });
      </script>
</div>

Last updated