zarinpal 0.1.1

Zarinpal Payment Gateway Api.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
//! This module contains requests type.

pub mod request;
pub mod unverified;
pub mod verify;

use serde::Serialize;

use crate::results::RequestResult;

pub trait ApiMethod: Serialize {
    const PATH: &'static str;

    type Result: RequestResult;

    fn set_merchant_id_if_needed(&mut self, merchant_id: impl Into<String>);
}