Skip to content
This repository was archived by the owner on Jun 22, 2026. It is now read-only.
Muhammad-Owais-WarsiPublic archive

About

Unofficial rust sdk to interact with dodopayments api.

Resources

Stars

6 stars

Watchers

0 watching

Forks

Latest commit

 

History

29 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

You can now access the official rust SDK from the docs

Dodo Payments Rust SDK (Archived)

Unofficial rust sdk to interact with dodopayments REST API.

The REST API documentation can be found on docs.dodopayments.com.

Installation

cargo add dodopayments_rust

Usage

use dodopayments_rust::{to_pretty_json, DodoPaymentsClientBuilder};

#[tokio::main]
async fn main() -> Result<(), Box<dyn std::error::Error>> {
    let api_key = std::env::var("DODO_API_KEY")?;

    let client = DodoPaymentsClientBuilder::new()
        .bearer_token(&api_key)
        .enviroment("test_mode")
        .build()?;

    let resp = client.payments().list().send().await?;
    println!("{}", to_pretty_json(&resp)?);

    Ok(())
}

Examples

You can checkout examples folder to view the usage of all the endpoints. To run any example run the following command in your root

  cargo run --example <file_name>

About

Unofficial rust sdk to interact with dodopayments api.

Resources

Stars

6 stars

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages