Skip to content

coino-live/rust-crypto-payments

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 

Repository files navigation

CoinoLive Crypto Payment Gateway API Wrapper

Welcome to the CoinoLive Crypto Payment Gateway API Wrapper repository! This repository contains a Rust implementation of the CoinoLive class, which provides convenient functionalities to interact with the CoinoLive Crypto Payment Gateway API. With this wrapper, you can easily create orders, redirect payments, and verify payments within your Rust applications.

Installation

To integrate the CoinoLive API wrapper into your Rust project, follow these simple steps:

  1. Clone or download this repository to your local machine.
  2. Include the coino_live.rs file in your Rust project.

Usage

Initialize an instance of CoinoLive by providing your API key:

let coino_live = CoinoLive::new("YOUR_API_KEY_HERE".to_string());

Use the create_order method to create an order:

let response = coino_live.create_order(10.0, "https://domain.com/verify_payment".to_string(), "Pay For shoes".to_string(), "M-2".to_string()).await?;

Redirect the user to the payment URL obtained from the create_order method:

coino_live.redirect_payment("ORDER_ID");

Use the verify_payment method to verify the payment status by providing the order ID:

let verification_response = coino_live.verify_payment("ORDER_ID").await?;

Handle the responses accordingly in your application.

Dependencies

  • reqwest (for making HTTP requests)
  • serde (for JSON serialization/deserialization)

Make sure to replace "YOUR_API_KEY_HERE" with your actual CoinoLive API key when initializing the CoinoLive instance.

Connect with Us

Stay updated with the latest news and updates from Coino Live:

Products

Links

Thank you for choosing Coino Live for your cryptocurrency payment gateway needs!

Releases

No releases published

Packages

No packages published

Languages