payway 0.1.0

Unofficial Rust SDK for ABA PayWay Payment Gateway
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
//! QR API Operations

use crate::client::PayWayClient;
use crate::constants::endpoint;
use crate::error::Result;
use crate::types::{GenerateQrRequest, GenerateQrResponse};

impl PayWayClient {
    pub async fn generate_qr(&self, request: GenerateQrRequest) -> Result<GenerateQrResponse> {
        self.post(endpoint::GENERATE_QR, &request).await
    }
}