1.0.2 • Published 6 months ago

cigalpay-js-sdk v1.0.2

Weekly downloads
-
License
MIT
Repository
github
Last release
6 months ago

cigalpay-Js-sdk

CigalPay-JS-SDK is a lightweight JavaScript library for seamless integration with the CigalPay cryptocurrency payment gateway. It offers methods for initiating payments, retrieving payment details, and checking transaction statuses, making it ideal for web-based crypto payment solutions.

Features

  • Accept multiple cryptocurrencies including BTC, ETH, LTC, DOGE, DASH, SOL, MATIC and BCH.
  • Real-time payment tracking.
  • Secure API with AES-256 encryption.
  • Easy-to-use JS SDK with npm support.

Installation

To install the CigalPay JS SDK using npm or via cdn:

Install via CDN

<script src="https://unpkg.com/cigalpay-js-sdk@1.0.0/cigalpay-sdk.js"></script>

OR

<script src="https://cdn.jsdelivr.net/npm/cigalpay-js-sdk@1.0.0/cigalpay-sdk.js"></script>

Install via NPM

npm i cigalpay-js-sdk

Usage

const sdk = new CigalpaySDK('https://api.cigalpay.icu', 'your-api-key');
sdk.createPayment(0.03, 'LTC', 'order123', 'https://callback.url/ipn', 'https://callback.url/invoice').then(console.log);

Available Methods

  • createPayment(amount, currency, extraId, ipnCallbackUrl, invoiceCallbackUrl)
  • getInvoiceStatus(invoiceId)
  • getPaymentStatus(id)
  • getPaymentsByExtraId(extraId)
  • getActivePayments()

License

This project is licensed under the MIT License.

Contributing

Contributions are welcome! Feel free to open issues or submit pull requests for improvements.