Skip to main content

Crate platega_io_sdk

Crate platega_io_sdk 

Source
Expand description

§Platega Rust SDK

Unofficial SDK. Independent, community-maintained port of platega-sdk-python; not affiliated with or endorsed by Platega.io.

Client for creating payments, querying statuses and validating callbacks of the Platega.io payment system.

Authentication uses the X-MerchantId / X-Secret headers (issued by the manager or available in the dashboard). The only external dependency is reqwest (plus hmac/sha2/base64/hex for the HMAC-signed get_cards endpoint).

§Payment methods

ConstantValueDescription
PaymentMethod::SberQR2SBP (QR) + Sberpay
PaymentMethod::Erip3ERIP
PaymentMethod::CardAcquiring11Card acquiring
PaymentMethod::International12International payments
PaymentMethod::Crypto13Cryptocurrency

Without a payment method the payment is created via /v2/transaction/process (the method is chosen on the Platega side).

See docs/index.md for the full usage guide.

Structs§

Balance
A merchant balance returned by GET /balance/all.
CallbackPayload
Platega webhook body for a transaction status change.
Card
A saved card returned by the HMAC-signed GET /api/v1/cards.
ChargeMetrics
Charge counters of a subscription.
CreatePayment
Payment creation parameters. All string fields are borrowed — no ownership is required, so there are no extra allocations.
CreatePaymentBuilder
Fluent builder for CreatePayment.
CreatePaymentResponse
Response of POST /v2/transaction/process (payment creation).
Metadata
Payment metadata (metadata): payer identifier used by the anti-fraud system.
Platega
Platega API client. Reuse one instance per process — the inner reqwest::Client pools connections.
PlategaCallback
Platega callback validator.
Subscription
A recurring SBP subscription returned by GET /subscription/{id}.
SubscriptionPage
Paginated response of GET /subscription.
SubscriptionSummary
A subscription entry returned inside SubscriptionPage.
TransactionStatus
Response of GET /transaction/{id} (transaction status).

Enums§

PaymentMethod
Payment method (paymentMethod). Without a method, /v2/transaction/process is used.
PaymentStatus
Transaction status.
PlategaError
SubscriptionInterval
Recurring SBP subscription interval.

Constants§

API_URL
VERSION

Type Aliases§

PlategaResult