<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Christopher Akanmu</title>
    <description>The latest articles on DEV Community by Christopher Akanmu (@christopher_akanmu).</description>
    <link>https://dev.to/christopher_akanmu</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F2026119%2Fe97c5f44-8c28-4198-9347-b92a7fde2740.png</url>
      <title>DEV Community: Christopher Akanmu</title>
      <link>https://dev.to/christopher_akanmu</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/christopher_akanmu"/>
    <language>en</language>
    <item>
      <title>How to Integrate Crypto Payments in Your Apps &amp; Build Your Own Crypto Payment Gateway with ZinariPays OpenAPI</title>
      <dc:creator>Christopher Akanmu</dc:creator>
      <pubDate>Thu, 24 Oct 2024 03:44:56 +0000</pubDate>
      <link>https://dev.to/zinaritech/how-to-integrate-crypto-payments-in-your-apps-build-your-own-crypto-payment-gateway-with-zinaripays-openapi-49ah</link>
      <guid>https://dev.to/zinaritech/how-to-integrate-crypto-payments-in-your-apps-build-your-own-crypto-payment-gateway-with-zinaripays-openapi-49ah</guid>
      <description>&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fpakj212z1ybudo5hiapk.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fpakj212z1ybudo5hiapk.png" alt="ZinariPay OpenAPI" width="800" height="400"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;In this article, we'll walk you through how to quickly set up a cryptocurrency payment gateway using ZinariPay's robust infrastructure. Whether you're a developer or a business looking to accept crypto payments, ZinariPay makes the process simple by providing a set of easy-to-use &lt;a href="https://api-docs.zinari.io/" rel="noopener noreferrer"&gt;APIs&lt;/a&gt; for handling transactions, managing wallets, and monitoring payments.&lt;/p&gt;




&lt;h3&gt;
  
  
  1. &lt;strong&gt;What is ZinariPay?&lt;/strong&gt;
&lt;/h3&gt;

&lt;p&gt;ZinariPay is a cryptocurrency payment gateway built to simplify crypto transactions for businesses, with a specific focus on the African market. Using &lt;a href="https://api-docs.zinari.io/" rel="noopener noreferrer"&gt;ZinariPay’s OpenAPI&lt;/a&gt;, businesses can process crypto payments in USDT and USDC with full integration support for fiat-to-crypto and crypto-to-fiat conversions.&lt;/p&gt;




&lt;h3&gt;
  
  
  2. &lt;strong&gt;Why Use ZinariPay for Your Payment Gateway?&lt;/strong&gt;
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Seamless Integration&lt;/strong&gt;: ZinariPay provides comprehensive OpenAPIs that allow you to create, track, and manage transactions easily.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Fast Setup&lt;/strong&gt;: With just a few API calls, you can have a functional crypto payment system.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Security and Reliability&lt;/strong&gt;: ZinariPay handles all blockchain interactions securely, ensuring that your transactions are processed smoothly and without exposing sensitive information.&lt;/li&gt;
&lt;/ul&gt;




&lt;h3&gt;
  
  
  3. &lt;strong&gt;Step-by-Step Guide: How to Create a Crypto Payment Gateway&lt;/strong&gt;
&lt;/h3&gt;

&lt;h4&gt;
  
  
  Step 1: &lt;strong&gt;Set Up Your ZinariPay Account&lt;/strong&gt;
&lt;/h4&gt;

&lt;ul&gt;
&lt;li&gt;To get started, &lt;a href="https://pay.zinari.io/" rel="noopener noreferrer"&gt;sign up&lt;/a&gt; for a ZinariPay account, where you can manage your apps and generate an API key from the ZinariPay console.&lt;/li&gt;
&lt;/ul&gt;

&lt;h4&gt;
  
  
  Step 2: &lt;strong&gt;Authenticate with Your API Key&lt;/strong&gt;
&lt;/h4&gt;

&lt;p&gt;Before making any API requests, you’ll need to pass your &lt;code&gt;apiKey&lt;/code&gt; as a Bearer token in the Authorization header. Without this, your requests will fail. You can obtain your API key from the &lt;a href="https://pay.zinari.io" rel="noopener noreferrer"&gt;ZinariPay console&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;Example:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;   Authorization: Bearer &amp;lt;your_api_key&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h4&gt;
  
  
  Step 3: &lt;strong&gt;Create a Transaction&lt;/strong&gt;
&lt;/h4&gt;

&lt;p&gt;Use the &lt;a href="https://api-docs.zinari.io/#c349b43d-ec71-4ab2-bb54-48a4c965d1ce" rel="noopener noreferrer"&gt;&lt;code&gt;create-transaction&lt;/code&gt;&lt;/a&gt; API to generate a unique payment address for your users. This allows your users to send payments in USDT or USDC.&lt;/p&gt;

&lt;p&gt;Example Request:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;   POST https://openapi.zinari.io/v1/create-transaction
   Content-Type: application/json

   &lt;span class="o"&gt;{&lt;/span&gt;
     &lt;span class="s2"&gt;"cryptocurrency"&lt;/span&gt;: &lt;span class="s2"&gt;"USDT"&lt;/span&gt;,
     &lt;span class="s2"&gt;"fiatAmount"&lt;/span&gt;: 50,
     &lt;span class="s2"&gt;"notificationEmailAddress"&lt;/span&gt;: &lt;span class="s2"&gt;"customer@example.com"&lt;/span&gt;
   &lt;span class="o"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;ul&gt;
&lt;li&gt;In development mode, the transaction will automatically be confirmed after a few seconds.&lt;/li&gt;
&lt;li&gt;You can also pass additional data like &lt;code&gt;userId&lt;/code&gt;, &lt;code&gt;orderId&lt;/code&gt;, or &lt;code&gt;productId&lt;/code&gt; to track your transactions.&lt;/li&gt;
&lt;/ul&gt;

&lt;h4&gt;
  
  
  Step 4: &lt;strong&gt;Monitor Transaction Status&lt;/strong&gt;
&lt;/h4&gt;

&lt;p&gt;Once the transaction is created, you can track its status using the &lt;a href="https://api-docs.zinari.io/#f7e77d4a-7d67-4c4d-9d91-26afd8d93dec" rel="noopener noreferrer"&gt;&lt;code&gt;get-transaction-by-id&lt;/code&gt;&lt;/a&gt; endpoint. This helps you keep tabs on whether the payment is &lt;code&gt;Pending&lt;/code&gt;, &lt;code&gt;Confirming&lt;/code&gt;, &lt;code&gt;Confirmed&lt;/code&gt;, or in any other status.&lt;/p&gt;

&lt;p&gt;Example:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;   GET https://openapi.zinari.io/v1/transaction/:id
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;ZinariPay also provides webhook notifications for real-time updates on transaction status. Set up your webhook URLS in your ZinariPay console&lt;/p&gt;

&lt;h4&gt;
  
  
  Step 5: &lt;strong&gt;Get Wallet Balances&lt;/strong&gt;
&lt;/h4&gt;

&lt;p&gt;You can use the &lt;a href="https://api-docs.zinari.io/#3e7757ee-cd6b-42db-ab2f-6546d7179d84" rel="noopener noreferrer"&gt;&lt;code&gt;get-wallets&lt;/code&gt;&lt;/a&gt; endpoint to retrieve all your app’s wallet balances, which is essential for managing your crypto reserves and withdrawals.&lt;/p&gt;

&lt;h4&gt;
  
  
  Step 6: &lt;strong&gt;Withdraw Funds&lt;/strong&gt;
&lt;/h4&gt;

&lt;p&gt;To move funds out of your wallets, use the &lt;a href="https://api-docs.zinari.io/#2820d45d-4509-4cb6-a635-0d9d0278c78e" rel="noopener noreferrer"&gt;&lt;code&gt;withdraw-from-wallet&lt;/code&gt;&lt;/a&gt; endpoint. This ensures you can securely transfer crypto to external wallets when needed. Withdrawal fees apply.&lt;/p&gt;

&lt;p&gt;Example:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;   POST https://openapi.zinari.io/v1/withdraw/:id

   &lt;span class="o"&gt;{&lt;/span&gt;
     &lt;span class="s2"&gt;"amount"&lt;/span&gt;: 50,
     &lt;span class="s2"&gt;"address"&lt;/span&gt;: &lt;span class="s2"&gt;"&amp;lt;withdrawal address here&amp;gt;"&lt;/span&gt;
   &lt;span class="o"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h4&gt;
  
  
  Step 7: &lt;strong&gt;Handle Exchange Rates&lt;/strong&gt;
&lt;/h4&gt;

&lt;p&gt;ZinariPay also supports fiat-to-crypto, crypto-to-fiat, fiat-to-fiat and crypto-to-crypto conversions. You can use the &lt;a href="https://api-docs.zinari.io/#2dc84ca7-02a0-4143-9c82-02a21ab241fc" rel="noopener noreferrer"&gt;&lt;code&gt;get-exchange-rate&lt;/code&gt;&lt;/a&gt; endpoint to retrieve the latest conversion rates.&lt;/p&gt;

&lt;p&gt;Example:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;   GET https://openapi.zinari.io/v1/exchange-rate?from&lt;span class="o"&gt;=&lt;/span&gt;USD&amp;amp;to&lt;span class="o"&gt;=&lt;/span&gt;NGN
   GET https://openapi.zinari.io/v1/exchange-rate?from&lt;span class="o"&gt;=&lt;/span&gt;USDT&amp;amp;to&lt;span class="o"&gt;=&lt;/span&gt;ETH
   GET https://openapi.zinari.io/v1/exchange-rate?from&lt;span class="o"&gt;=&lt;/span&gt;USDT&amp;amp;to&lt;span class="o"&gt;=&lt;/span&gt;ZAR
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;






&lt;h3&gt;
  
  
  4. &lt;strong&gt;Additional Features&lt;/strong&gt;
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Transaction Statuses&lt;/strong&gt;: Learn about the various transaction statuses like &lt;code&gt;Pending&lt;/code&gt;, &lt;code&gt;Confirming&lt;/code&gt;, &lt;code&gt;Confirmed&lt;/code&gt;, &lt;code&gt;Incomplete&lt;/code&gt;, etc., and how to respond to each.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Paginated Transaction Lists&lt;/strong&gt;: Use the &lt;a href="https://api-docs.zinari.io/#ebebbc64-75f8-43cd-a83d-ed50846ba851" rel="noopener noreferrer"&gt;&lt;code&gt;list-paginated-transactions&lt;/code&gt;&lt;/a&gt; endpoints to fetch transactions in production and development modes.&lt;/li&gt;
&lt;/ul&gt;




&lt;h3&gt;
  
  
  5. &lt;strong&gt;Conclusion&lt;/strong&gt;
&lt;/h3&gt;

&lt;p&gt;By following the steps above, you can quickly integrate ZinariPay's APIs to either set up your own cryptocurrency payment gateway or directly receive payments in your website or apps. ZinariPay’s flexible API infrastructure makes it easy to process, track, and manage crypto payments without the burden of heavy maintenance. Whether you're looking to build a complete payment system or just accept payments, ZinariPay provides the tools to ensure a smooth and secure integration.&lt;/p&gt;

&lt;p&gt;For a more comprehensive guide on all available endpoints, detailed usage examples, and best practices, please visit our &lt;a href="https://api-docs.zinari.io/" rel="noopener noreferrer"&gt;official API documentation&lt;/a&gt;.&lt;/p&gt;

</description>
      <category>api</category>
      <category>webdev</category>
      <category>tutorial</category>
      <category>payments</category>
    </item>
    <item>
      <title>ZinariPay 2.0.0: The New Era of Cryptocurrency Payments Integration</title>
      <dc:creator>Christopher Akanmu</dc:creator>
      <pubDate>Mon, 14 Oct 2024 19:28:01 +0000</pubDate>
      <link>https://dev.to/zinaritech/zinaripay-200-the-new-era-of-cryptocurrency-payments-integration-26a8</link>
      <guid>https://dev.to/zinaritech/zinaripay-200-the-new-era-of-cryptocurrency-payments-integration-26a8</guid>
      <description>&lt;p&gt;We're excited to announce the release of &lt;a href="https://www.npmjs.com/package/zinari-pay" rel="noopener noreferrer"&gt;ZinariPay version 2.0.0&lt;/a&gt;! This major update introduces significant changes and improvements to our npm package and CDN, making it easier and more secure than ever to integrate cryptocurrency payments into your web applications.&lt;/p&gt;

&lt;p&gt;&lt;iframe width="710" height="399" src="https://www.youtube.com/embed/aj4tcXQ6Ufs"&gt;
&lt;/iframe&gt;
&lt;/p&gt;

&lt;h2&gt;
  
  
  What's New?
&lt;/h2&gt;

&lt;h3&gt;
  
  
  1. Mandatory API Key for Enhanced Security
&lt;/h3&gt;

&lt;p&gt;In version 2.0.0, the &lt;code&gt;apiKey&lt;/code&gt; is now a mandatory field for all integrations. This breaking change emphasizes our commitment to enhanced security. By requiring the API key, we've introduced an extra layer of protection to ensure that your transactions remain safe and secure.&lt;/p&gt;

&lt;h3&gt;
  
  
  2. Completely Revamped User Interface
&lt;/h3&gt;

&lt;p&gt;Our new UI is not only beautiful and intuitive, but it also follows a newly established design pattern that makes it more user-friendly. Whether you’re using the npm package or the CDN, you’ll notice how the fresh look and feel align with our marketing site. The updated interface provides clearer transaction details, while still maintaining core functionalities such as barcodes and copy functionality.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F9tauvlliaw8cdg9zn79j.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F9tauvlliaw8cdg9zn79j.png" alt="Initial screen" width="734" height="1066"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fnaptv16q0zlaxmul54n5.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fnaptv16q0zlaxmul54n5.png" alt="Payment screen" width="734" height="1522"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Key Features in ZinariPay 2.0.0
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Multiple Cryptocurrency Support&lt;/strong&gt;: ZinariPay supports USDT and USDC, ensuring a seamless crypto payment experience.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Encrypted Transactions&lt;/strong&gt;: We’ve made security a priority with encrypted transaction handling, ensuring sensitive data is protected at all times.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Easy Integration&lt;/strong&gt;: Developers can integrate ZinariPay more easily, whether using npm, yarn, or CDN. With just a few simple steps, you can enable crypto payments for your app.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Installation and Integration
&lt;/h2&gt;

&lt;p&gt;ZinariPay 2.0.0 can be integrated via npm, yarn, or CDN. Below are the simple steps to get started:&lt;/p&gt;

&lt;h3&gt;
  
  
  Using npm
&lt;/h3&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;npm &lt;span class="nb"&gt;install &lt;/span&gt;zinari-pay
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  Using yarn
&lt;/h3&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;yarn add zinari-pay
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  CDN Integration
&lt;/h3&gt;

&lt;p&gt;Simply include our latest script tag, and the &lt;code&gt;ZinariPay&lt;/code&gt; instance will be globally available via the &lt;code&gt;window&lt;/code&gt; object.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight html"&gt;&lt;code&gt;&lt;span class="nt"&gt;&amp;lt;script &lt;/span&gt;&lt;span class="na"&gt;src=&lt;/span&gt;&lt;span class="s"&gt;"https://cdn.jsdelivr.net/npm/zinari-pay/dist/zinari-pay-cdn-bundle.umd.js"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&amp;lt;/script&amp;gt;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Usage
&lt;/h2&gt;

&lt;p&gt;After installation, configuring ZinariPay is as easy as initializing &lt;code&gt;ZinariPay&lt;/code&gt; with your app’s credentials, including the now-required API key:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="nx"&gt;config&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="k"&gt;new&lt;/span&gt; &lt;span class="nc"&gt;ZinariPay&lt;/span&gt;&lt;span class="p"&gt;({&lt;/span&gt;
  &lt;span class="na"&gt;appId&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;your-app-id&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="na"&gt;apiKey&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;your-api-key&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="na"&gt;publicKey&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;your-public-key&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
&lt;span class="p"&gt;});&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;With a fully configured instance, you can easily initiate transactions and handle user payments. For instance, the &lt;code&gt;zinariPay.initiateTransaction&lt;/code&gt; method allows you to manage the payment process seamlessly:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="nx"&gt;zinariPayInstance&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;initiateTransaction&lt;/span&gt;&lt;span class="p"&gt;({&lt;/span&gt;
  &lt;span class="na"&gt;amount&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;100&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="na"&gt;details&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="na"&gt;orderId&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;#1234&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="na"&gt;description&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;Purchase Order #1234&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt; &lt;span class="p"&gt;},&lt;/span&gt;
  &lt;span class="na"&gt;onConfirmed&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;response&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="nx"&gt;console&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;log&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;Transaction Confirmed:&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nx"&gt;response&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
  &lt;span class="p"&gt;},&lt;/span&gt;
&lt;span class="p"&gt;});&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Supported Fiat Currencies
&lt;/h2&gt;

&lt;p&gt;Our package supports a range of fiat currencies, automatically converting them into USDT or USDC for transactions. Supported currencies include:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Nigerian Naira (₦)&lt;/li&gt;
&lt;li&gt;South African Rand (R)&lt;/li&gt;
&lt;li&gt;United States Dollar ($)&lt;/li&gt;
&lt;li&gt;Euro (€)&lt;/li&gt;
&lt;li&gt;British Pound (£)&lt;/li&gt;
&lt;li&gt;&lt;a href="https://pay.zinari.io/solutions" rel="noopener noreferrer"&gt;and more!&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  CORS and Known Issues
&lt;/h2&gt;

&lt;p&gt;If you encounter a CORS error, visit your ZinariPay &lt;a href="https://console.zinari.io/" rel="noopener noreferrer"&gt;console&lt;/a&gt;, navigate to the API section under App Settings, and whitelist your development/live environment URLs.&lt;/p&gt;

&lt;h2&gt;
  
  
  The Path Ahead
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://pay.zinari.io/" rel="noopener noreferrer"&gt;ZinariPay&lt;/a&gt; 2.0.0 brings a new level of security, functionality, and aesthetic appeal to cryptocurrency payments. With this release, we’ve solidified our commitment to providing a developer-friendly and highly secure gateway for accepting cryptocurrency payments. Whether you're a seasoned developer or new to crypto, ZinariPay has the tools you need to succeed.&lt;/p&gt;

&lt;p&gt;Check out our &lt;a href="https://www.npmjs.com/package/zinari-pay" rel="noopener noreferrer"&gt;official documentation&lt;/a&gt; to learn more, and get started with ZinariPay today!&lt;/p&gt;

</description>
      <category>javascript</category>
      <category>cryptocurrency</category>
      <category>payments</category>
      <category>programming</category>
    </item>
    <item>
      <title>How to Integrate ZinariPay with Your Application Using the CDN</title>
      <dc:creator>Christopher Akanmu</dc:creator>
      <pubDate>Wed, 04 Sep 2024 11:46:42 +0000</pubDate>
      <link>https://dev.to/zinaritech/how-to-integrate-zinaripay-with-your-application-using-the-cdn-236i</link>
      <guid>https://dev.to/zinaritech/how-to-integrate-zinaripay-with-your-application-using-the-cdn-236i</guid>
      <description>&lt;p&gt;If you’re looking for a quick and easy way to integrate cryptocurrency payments into your web application, ZinariPay’s CDN option is the perfect solution. With no need to install any packages, you can start accepting USDT and USDC payments by simply including a script tag in your HTML file.&lt;/p&gt;

&lt;h2&gt;
  
  
  Step 1: Installation
&lt;/h2&gt;

&lt;p&gt;Integrating &lt;a href="https://pay.zinari.io/" rel="noopener noreferrer"&gt;ZinariPay&lt;/a&gt; via CDN is as simple as adding a script tag to your HTML file. Here’s how you can do it.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight html"&gt;&lt;code&gt;&lt;span class="nt"&gt;&amp;lt;script &lt;/span&gt;&lt;span class="na"&gt;src=&lt;/span&gt;&lt;span class="s"&gt;"https://cdn.jsdelivr.net/npm/zinari-pay/dist/zinari-pay-cdn-bundle.umd.js"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&amp;lt;/script&amp;gt;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;You can also use UNPKG as an alternative:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight html"&gt;&lt;code&gt;&lt;span class="nt"&gt;&amp;lt;script &lt;/span&gt;&lt;span class="na"&gt;src=&lt;/span&gt;&lt;span class="s"&gt;"https://unpkg.com/zinari-pay/dist/zinari-pay-cdn-bundle.umd.js"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&amp;lt;/script&amp;gt;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;This script will load the ZinariPay library directly into your application, allowing you to start configuring and initiating transactions right away.&lt;/p&gt;

&lt;h2&gt;
  
  
  Step 2: Create a New Instance
&lt;/h2&gt;

&lt;p&gt;After including the script, you’ll need to create a new instance of the ZinariPay object. This is where you’ll configure your payment options, such as the publicKey and appId.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Example Configuration&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Here’s a basic example of how to create a new instance:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight html"&gt;&lt;code&gt;&lt;span class="cp"&gt;&amp;lt;!DOCTYPE html&amp;gt;&lt;/span&gt;
&lt;span class="nt"&gt;&amp;lt;html&lt;/span&gt; &lt;span class="na"&gt;lang=&lt;/span&gt;&lt;span class="s"&gt;"en"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;
&lt;span class="nt"&gt;&amp;lt;head&amp;gt;&lt;/span&gt;
    &lt;span class="nt"&gt;&amp;lt;meta&lt;/span&gt; &lt;span class="na"&gt;charset=&lt;/span&gt;&lt;span class="s"&gt;"UTF-8"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;
    &lt;span class="nt"&gt;&amp;lt;meta&lt;/span&gt; &lt;span class="na"&gt;name=&lt;/span&gt;&lt;span class="s"&gt;"viewport"&lt;/span&gt; &lt;span class="na"&gt;content=&lt;/span&gt;&lt;span class="s"&gt;"width=device-width, initial-scale=1.0"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;
    &lt;span class="nt"&gt;&amp;lt;title&amp;gt;&lt;/span&gt;Zinari Pay Integration&lt;span class="nt"&gt;&amp;lt;/title&amp;gt;&lt;/span&gt;
&lt;span class="nt"&gt;&amp;lt;/head&amp;gt;&lt;/span&gt;
&lt;span class="nt"&gt;&amp;lt;body&amp;gt;&lt;/span&gt;
&lt;span class="c"&gt;&amp;lt;!-- Your content --&amp;gt;&lt;/span&gt;

&lt;span class="c"&gt;&amp;lt;!-- Include the Zinari Pay CDN Bundle --&amp;gt;&lt;/span&gt;
&lt;span class="nt"&gt;&amp;lt;script &lt;/span&gt;&lt;span class="na"&gt;src=&lt;/span&gt;&lt;span class="s"&gt;"https://cdn.jsdelivr.net/npm/zinari-pay/dist/zinari-pay-cdn-bundle.umd.js"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&amp;lt;/script&amp;gt;&lt;/span&gt;
&lt;span class="nt"&gt;&amp;lt;script&amp;gt;&lt;/span&gt;
    &lt;span class="c1"&gt;// Create a new instance of ZinariPay&lt;/span&gt;
    &lt;span class="nb"&gt;window&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;zinariPay&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="k"&gt;new&lt;/span&gt; &lt;span class="nc"&gt;ZinariPay&lt;/span&gt;&lt;span class="p"&gt;({&lt;/span&gt;
        &lt;span class="na"&gt;appId&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;your-app-id&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
        &lt;span class="na"&gt;publicKey&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;your-public-key&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="p"&gt;});&lt;/span&gt;
&lt;span class="nt"&gt;&amp;lt;/script&amp;gt;&lt;/span&gt;
&lt;span class="nt"&gt;&amp;lt;/body&amp;gt;&lt;/span&gt;
&lt;span class="nt"&gt;&amp;lt;/html&amp;gt;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;You can get you &lt;strong&gt;publicKey&lt;/strong&gt; and &lt;strong&gt;appId&lt;/strong&gt; from you &lt;a href="https://console.zinari.io" rel="noopener noreferrer"&gt;dashboard&lt;/a&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  Step 3: Initiate a Transaction
&lt;/h2&gt;

&lt;p&gt;Once your instance is configured, you can initiate a transaction. This can be done by calling the &lt;code&gt;initiateTransaction&lt;/code&gt; method on your ZinariPay instance.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Example of Transaction Initiation&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="c1"&gt;// Access the ZinariPay instance&lt;/span&gt;
&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="nx"&gt;zinariPayInstance&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nb"&gt;window&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;zinariPay&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="c1"&gt;// Example: Initiate a transaction&lt;/span&gt;
&lt;span class="nx"&gt;zinariPayInstance&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;initiateTransaction&lt;/span&gt;&lt;span class="p"&gt;({&lt;/span&gt;
  &lt;span class="na"&gt;amount&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;100&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="na"&gt;details&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="na"&gt;orderId&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;#1234&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="na"&gt;description&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;Purchase Order #1234&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="p"&gt;},&lt;/span&gt;
  &lt;span class="na"&gt;onConfirmed&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;response&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="nx"&gt;console&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;log&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;Transaction Confirmed:&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nx"&gt;response&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
  &lt;span class="p"&gt;},&lt;/span&gt;
&lt;span class="p"&gt;});&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;In this example, the transaction initiation is tied to a button click event. When the user clicks the “Pay with ZinariPay” button, the transaction process begins.&lt;/p&gt;

&lt;h2&gt;
  
  
  Conclusion
&lt;/h2&gt;

&lt;p&gt;Integrating &lt;a href="https://pay.zinari.io/" rel="noopener noreferrer"&gt;ZinariPay&lt;/a&gt; using the CDN is a hassle-free way to start accepting cryptocurrency payments on your website. With just a few lines of code, you can provide your users with the option to pay using USDT or USDC, all while enjoying the security and convenience of ZinariPay’s encrypted transaction handling.&lt;/p&gt;

&lt;p&gt;For more information, visit our &lt;a href="https://www.npmjs.com/package/zinari-pay" rel="noopener noreferrer"&gt;official documentation&lt;/a&gt; and start integrating ZinariPay today!&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fg16k006pmgeeiut417mn.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fg16k006pmgeeiut417mn.png" alt="ZinariPay Customer Payment Flow" width="750" height="1334"&gt;&lt;/a&gt;&lt;br&gt;
&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fogo0xhqw830pqrk0ijpa.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fogo0xhqw830pqrk0ijpa.png" alt="ZinariPay Customer Payment Flow" width="750" height="1334"&gt;&lt;/a&gt;&lt;br&gt;
&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fzkwix4ql7uv5zackvhvo.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fzkwix4ql7uv5zackvhvo.png" alt="ZinariPay Customer Payment Flow" width="750" height="1334"&gt;&lt;/a&gt;&lt;br&gt;
&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Focdk9j951hpvxon7nm34.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Focdk9j951hpvxon7nm34.png" alt="ZinariPay Customer Payment Flow" width="750" height="1334"&gt;&lt;/a&gt;&lt;br&gt;
&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F12s1uvrjnivarmnkwvou.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F12s1uvrjnivarmnkwvou.png" alt="ZinariPay Customer Payment Flow" width="750" height="1334"&gt;&lt;/a&gt;&lt;/p&gt;

</description>
      <category>javascript</category>
      <category>cryptocurrency</category>
      <category>payments</category>
      <category>webdev</category>
    </item>
    <item>
      <title>How to Integrate ZinariPay with Your Application Using the NPM Package</title>
      <dc:creator>Christopher Akanmu</dc:creator>
      <pubDate>Wed, 04 Sep 2024 11:35:12 +0000</pubDate>
      <link>https://dev.to/zinaritech/how-to-integrate-zinaripay-with-your-application-using-the-npm-package-2nii</link>
      <guid>https://dev.to/zinaritech/how-to-integrate-zinaripay-with-your-application-using-the-npm-package-2nii</guid>
      <description>&lt;p&gt;Integrating cryptocurrency payments into your web application has never been easier. &lt;a href="https://pay.zinari.io/" rel="noopener noreferrer"&gt;ZinariPay&lt;/a&gt; offers a robust NPM package that allows developers to seamlessly add USDT and USDC payment functionalities. In this guide, we will walk you through the steps to integrate ZinariPay into your application using the NPM package.&lt;/p&gt;

&lt;h2&gt;
  
  
  Step 1: Installation
&lt;/h2&gt;

&lt;p&gt;First, you'll need to install the &lt;a href="https://pay.zinari.io/" rel="noopener noreferrer"&gt;ZinariPay&lt;/a&gt; package. This can be done using either npm or yarn, depending on your preference.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Using npm&lt;/strong&gt;&lt;br&gt;
To install using npm, run the following command in your terminal:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;npm &lt;span class="nb"&gt;install &lt;/span&gt;zinari-pay
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;Using yarn&lt;/strong&gt;&lt;br&gt;
Alternatively, you can use yarn to install the package:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;yarn add zinari-pay
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Step 2: Configuration
&lt;/h2&gt;

&lt;p&gt;Once the package is installed, you need to configure it for your application. The configuration involves creating an instance of &lt;a href="https://pay.zinari.io/" rel="noopener noreferrer"&gt;ZinariPay&lt;/a&gt; with your specific settings.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Example Configuration&lt;/strong&gt;&lt;br&gt;
Here's a basic configuration example using vanilla JavaScript:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="k"&gt;import&lt;/span&gt; &lt;span class="nx"&gt;ZinariPay&lt;/span&gt; &lt;span class="k"&gt;from&lt;/span&gt; &lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;zinari-pay&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="nx"&gt;zinariPay&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="k"&gt;new&lt;/span&gt; &lt;span class="nc"&gt;ZinariPay&lt;/span&gt;&lt;span class="p"&gt;({&lt;/span&gt;
  &lt;span class="na"&gt;appId&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;your-app-id&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="na"&gt;publicKey&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;your-public-key&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="na"&gt;log&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nx"&gt;process&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;env&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;NODE_ENV&lt;/span&gt; &lt;span class="o"&gt;===&lt;/span&gt; &lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;development&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="cm"&gt;/** Recommendation: Only 
use for development to avoid exposing sensitive data to end users
   */&lt;/span&gt;
&lt;span class="p"&gt;});&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;You can get you &lt;strong&gt;appId&lt;/strong&gt; and &lt;strong&gt;publicKey&lt;/strong&gt; from you dashboard&lt;/p&gt;

&lt;h2&gt;
  
  
  Step 3: Initiate a Transaction
&lt;/h2&gt;

&lt;p&gt;With your configuration set up, you can now initiate a transaction. This can be done using the initiateTransaction method.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Vanilla JavaScript Example&lt;/strong&gt;&lt;br&gt;
Here's how you would initiate a transaction:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="k"&gt;import&lt;/span&gt; &lt;span class="nx"&gt;ZinariPay&lt;/span&gt; &lt;span class="k"&gt;from&lt;/span&gt; &lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;zinari-pay&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="nx"&gt;zinariPay&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="k"&gt;new&lt;/span&gt; &lt;span class="nc"&gt;ZinariPay&lt;/span&gt;&lt;span class="p"&gt;({...})&lt;/span&gt;

&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="nx"&gt;payWithCryptoButton&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nb"&gt;document&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;getElementById&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;your-payment-button&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;

&lt;span class="nx"&gt;payWithCryptoButton&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;addEventListener&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;click&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="p"&gt;()&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="nx"&gt;zinariPay&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;initiateTransaction&lt;/span&gt;&lt;span class="p"&gt;({&lt;/span&gt;
    &lt;span class="na"&gt;amount&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;10000&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="na"&gt;notificationEmailAddress&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;users@email.com&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="na"&gt;details&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
      &lt;span class="cm"&gt;/** Add all the extra details you need here,
       * we  call your webhook url with all this data included */&lt;/span&gt;
    &lt;span class="p"&gt;},&lt;/span&gt;
    &lt;span class="na"&gt;onConfirmed&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;transactionDetails&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
      &lt;span class="cm"&gt;/** Do something when the transaction is confirmed */&lt;/span&gt;
    &lt;span class="p"&gt;}&lt;/span&gt;
  &lt;span class="p"&gt;});&lt;/span&gt;
&lt;span class="p"&gt;});&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;React Example&lt;/strong&gt;&lt;br&gt;
If you're using React, you can integrate &lt;strong&gt;ZinariPay&lt;/strong&gt; as follows:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="k"&gt;import&lt;/span&gt; &lt;span class="nx"&gt;ZinariPay&lt;/span&gt; &lt;span class="k"&gt;from&lt;/span&gt; &lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;zinari-pay&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="nx"&gt;zinariPay&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="k"&gt;new&lt;/span&gt; &lt;span class="nc"&gt;ZinariPay&lt;/span&gt;&lt;span class="p"&gt;({&lt;/span&gt;
  &lt;span class="na"&gt;appId&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;your-app-id&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="na"&gt;publicKey&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;your-public-key&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="na"&gt;log&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nx"&gt;process&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;env&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;NODE_ENV&lt;/span&gt; &lt;span class="o"&gt;===&lt;/span&gt; &lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;development&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
&lt;span class="p"&gt;});&lt;/span&gt;

&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="nx"&gt;App&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;()&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="nx"&gt;handleClick&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nf"&gt;useCallback&lt;/span&gt;&lt;span class="p"&gt;(({&lt;/span&gt;&lt;span class="nx"&gt;price&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nx"&gt;email&lt;/span&gt;&lt;span class="p"&gt;})&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="nx"&gt;zinariPay&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;initiateTransaction&lt;/span&gt;&lt;span class="p"&gt;({&lt;/span&gt;
      &lt;span class="na"&gt;amount&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nx"&gt;price&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
      &lt;span class="na"&gt;notificationEmailAddress&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nx"&gt;email&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
      &lt;span class="na"&gt;onConfirmed&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;transactionDetails&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
        &lt;span class="cm"&gt;/** Do something when the transaction is confirmed */&lt;/span&gt;
      &lt;span class="p"&gt;},&lt;/span&gt;
      &lt;span class="na"&gt;details&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
        &lt;span class="cm"&gt;/** Add all the extra details you need here,
         * we  call your webhook url with all this data included */&lt;/span&gt;
      &lt;span class="p"&gt;},&lt;/span&gt;
    &lt;span class="p"&gt;});&lt;/span&gt;
  &lt;span class="p"&gt;},&lt;/span&gt; &lt;span class="p"&gt;[]);&lt;/span&gt;

  &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="o"&gt;&amp;lt;&lt;/span&gt;&lt;span class="nx"&gt;button&lt;/span&gt; &lt;span class="nx"&gt;onClick&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="nx"&gt;handleClick&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;
    &lt;span class="nx"&gt;Pay&lt;/span&gt; &lt;span class="kd"&gt;with&lt;/span&gt; &lt;span class="nx"&gt;Cryptocurrency&lt;/span&gt;
  &lt;span class="o"&gt;&amp;lt;&lt;/span&gt;&lt;span class="sr"&gt;/button&lt;/span&gt;&lt;span class="err"&gt;&amp;gt;
&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;Conclusion&lt;/strong&gt;&lt;br&gt;
Integrating &lt;a href="https://pay.zinari.io/" rel="noopener noreferrer"&gt;ZinariPay&lt;/a&gt; into your application using the NPM package is straightforward and efficient. With support for USDT and USDC, encrypted transactions, and easy-to-use methods, ZinariPay is the perfect solution for adding cryptocurrency payments to your web application.&lt;br&gt;
For more detailed information, visit the official documentation and start building today!&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fg16k006pmgeeiut417mn.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fg16k006pmgeeiut417mn.png" alt="ZinariPay Customer Payment Flow" width="750" height="1334"&gt;&lt;/a&gt;&lt;br&gt;
&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fogo0xhqw830pqrk0ijpa.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fogo0xhqw830pqrk0ijpa.png" alt="ZinariPay Customer Payment Flow" width="750" height="1334"&gt;&lt;/a&gt;&lt;br&gt;
&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fzkwix4ql7uv5zackvhvo.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fzkwix4ql7uv5zackvhvo.png" alt="ZinariPay Customer Payment Flow" width="750" height="1334"&gt;&lt;/a&gt;&lt;br&gt;
&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Focdk9j951hpvxon7nm34.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Focdk9j951hpvxon7nm34.png" alt="ZinariPay Customer Payment Flow" width="750" height="1334"&gt;&lt;/a&gt;&lt;br&gt;
&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F12s1uvrjnivarmnkwvou.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F12s1uvrjnivarmnkwvou.png" alt="ZinariPay Customer Payment Flow" width="750" height="1334"&gt;&lt;/a&gt;&lt;/p&gt;

</description>
      <category>cryptocurrency</category>
      <category>javascript</category>
      <category>webdev</category>
      <category>programming</category>
    </item>
    <item>
      <title>Introducing ZinariPay: The Future of Cryptocurrency Payments</title>
      <dc:creator>Christopher Akanmu</dc:creator>
      <pubDate>Wed, 04 Sep 2024 11:20:17 +0000</pubDate>
      <link>https://dev.to/zinaritech/introducing-zinaripay-the-future-of-cryptocurrency-payments-3h46</link>
      <guid>https://dev.to/zinaritech/introducing-zinaripay-the-future-of-cryptocurrency-payments-3h46</guid>
      <description>&lt;p&gt;In an increasingly digital world, businesses need reliable and secure ways to accept cryptocurrency payments. Enter &lt;a href="https://pay.zinari.io/" rel="noopener noreferrer"&gt;ZinariPay&lt;/a&gt; - a powerful and versatile cryptocurrency payment platform designed to meet the needs of modern businesses. Currently, &lt;a href="https://pay.zinari.io/" rel="noopener noreferrer"&gt;ZinariPay&lt;/a&gt; supports USDT and USDC, with plans to expand to other cryptocurrencies in the near future.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Why ZinariPay?&lt;/strong&gt;&lt;br&gt;
&lt;a href="https://pay.zinari.io/" rel="noopener noreferrer"&gt;ZinariPay&lt;/a&gt; is not just another payment gateway; it's a comprehensive solution for managing your cryptocurrency transactions with ease and security. Whether you're a small business or a large enterprise, ZinariPay provides all the tools you need to integrate cryptocurrency payments seamlessly into your operations.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Add and Manage Apps&lt;/strong&gt;&lt;br&gt;
ZinariPay allows you to easily add and manage multiple apps under one account. Each app can be configured with its own settings, public keys, and more. You can rotate public keys for enhanced security and manage all your apps from a single dashboard.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Team Management with Role-Based Permissions&lt;/strong&gt;&lt;br&gt;
With ZinariPay, you can add, manage, and even terminate team members with different permission levels. Whether you need a customer support role to handle queries or a software developer role to manage technical aspects, ZinariPay has you covered.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Seamless Withdrawals&lt;/strong&gt;&lt;br&gt;
Withdraw your funds effortlessly with our seamless withdrawal feature. ZinariPay ensures that your transactions are processed quickly and securely, giving you peace of mind.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Comprehensive Transaction History&lt;/strong&gt;&lt;br&gt;
ZinariPay provides a thorough transaction history that includes blockchain transaction IDs. These IDs allow you to track your transactions directly on the blockchain, offering transparency and trust.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Social Login&lt;/strong&gt;&lt;br&gt;
Simplify user onboarding with social login options. ZinariPay supports popular social media platforms, making it easier for users to sign in and start managing their cryptocurrency payments.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Encrypted Data Storage&lt;/strong&gt;&lt;br&gt;
At ZinariPay, security is our top priority. All sensitive data is encrypted before storage, ensuring that your information is protected at all times.&lt;/p&gt;&lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;
  
  
  Supported Fiat Currencies
&lt;/h2&gt;

&lt;p&gt;ZinariPay is designed to be flexible, and we support a comprehensive list of fiat currencies. Whether you're dealing with USD, EUR, GBP, NGN, KSh, GHS, EGP or any other major currency, ZinariPay makes it easy to convert and manage your funds. You can find a list of supported fiat currencies here.&lt;/p&gt;

&lt;h2&gt;
  
  
  Development Roadmap
&lt;/h2&gt;

&lt;p&gt;While ZinariPay currently supports USDT and USDC, we are actively working on integrating other popular cryptocurrencies. Our goal is to provide a diverse range of payment options to meet the evolving needs of our users.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Get Started with ZinariPay&lt;/strong&gt;&lt;br&gt;
Ready to integrate &lt;a href="https://pay.zinari.io/" rel="noopener noreferrer"&gt;ZinariPay&lt;/a&gt; into your business? Visit our website to learn more. You can also check out our NPM package to start building your own integrations.&lt;/p&gt;

&lt;h2&gt;
  
  
  Conclusion
&lt;/h2&gt;

&lt;p&gt;ZinariPay is more than just a payment platform - it's a gateway to the future of digital payments. With robust features, strong security measures, and an expanding range of supported currencies, ZinariPay is poised to become the go-to solution for businesses looking to accept cryptocurrency payments.&lt;br&gt;
Don't miss out on the future of payments. Join ZinariPay today!&lt;/p&gt;

</description>
      <category>cryptocurrency</category>
      <category>startup</category>
      <category>payments</category>
      <category>javascript</category>
    </item>
  </channel>
</rss>
