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.
To integrate the CoinoLive API wrapper into your Rust project, follow these simple steps:
- Clone or download this repository to your local machine.
- Include the
coino_live.rs
file in your Rust project.
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.
- 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.
Stay updated with the latest news and updates from Coino Live:
- Accept Crypto Payments
- Personal Crypto Gateway
- Crypto Donation
- Invoice Manager
- POS Crypto Payment Terminal
- Crypto Form Builder
Thank you for choosing Coino Live for your cryptocurrency payment gateway needs!