Anypay Rust SDK ๐
Welcome to Anypay's WebSocket Tools! This powerful suite enables real-time payment processing and monitoring through a modern WebSocket interface. Built with Rust for maximum performance and reliability, these tools make cryptocurrency payment integration a breeze! ๐ซ
What's Inside? ๐ฆ
anypay-client๐ง: A powerful CLI tool for creating and managing invoices, submitting payments, and monitoring payment status in real-timeanypay-server๐ฅ๏ธ: A high-performance WebSocket server that handles payment processing and real-time notifications
Features โจ
- Real-time Updates ๐: Get instant notifications about payment status changes
- Multi-Currency Support ๐ฐ: Handle payments in various cryptocurrencies
- Secure Authentication ๐: Built-in token-based security
- Flexible Integration ๐: Easy-to-use CLI and WebSocket interfaces
- Automatic Payment Options โก: Smart payment option generation based on current prices
Installation ๐ ๏ธ
From crates.io
# Install both client and server binaries
# Or install them separately
From Source
# Clone the repository
# Build the release binaries
# The binaries will be available in target/release/
anypay-client Usage ๐ง
Authentication ๐
Provide your API token either:
- As a command line argument:
--token YOUR_TOKEN - Via environment variable:
export ANYPAY_TOKEN=YOUR_TOKEN
Available Commands ๐ป
Create an Invoice ๐
Request a Payment ๐ธ
Submit a Payment ๐ค
Get Invoice Details ๐
Cancel an Invoice โ
Get Current Prices ๐
Monitor Invoice Updates ๐
Additional Options โ๏ธ
--json: Output responses in JSON format--endpoint URL: Use a custom API endpoint--debug: Enable debug logging
anypay-server Usage ๐ฅ๏ธ
Configuration โ๏ธ
Configure the server using environment variables:
# Required ๐
# Optional ๐ง
# Default: 8080
# Default: 0.0.0.0
# Default: info
Running the Server ๐
# Start the server
# With custom port
# With debug logging
Server Features ๐
- Real-time WebSocket communication ๐
- Price updates and conversions ๐ฑ
- Invoice creation and management ๐
- Payment processing ๐ณ
- Event subscriptions ๐ก
- Automatic payment option generation โก
Development ๐ฉโ๐ป
Requirements ๐
- Rust 1.70 or later
- Cargo package manager
Building ๐๏ธ
# Debug build
# Release build
Testing ๐งช
API Documentation ๐
For detailed API documentation, including WebSocket message formats and HTTP endpoints, see API.md.
Get Started Today! ๐
Start accepting cryptocurrency payments in minutes with Anypay's WebSocket tools. For more information, visit our documentation or contact our support team.
License ๐
MIT License. See LICENSE for details.
Thank you for choosing Anypay! We look forward to powering your payment solutions. ๐