← Back to Documentation

Rust SDK

Official TurraTech library for Rust applications.

Installation

Add to your Cargo.toml:

[dependencies] turratech = "1.0"

Quick Start

use turratech::{Client, Payment}; async fn main() -> Result<(), turratech::Error> { let client = Client::new("sk_live_your_secret_key"); // Create a payment let payment = client .payments() .create(Payment { amount: 2500, currency: "usd".into(), payment_method: "pm_card_visa".into(), description: Some("Order #1234".into()), }) .await?; Ok(()) }

Requirements

Rust 1.70 or higher is required. Uses async/await with tokio runtime.