Files
Narayan Bhat b15b8f7b43 feat: cards info api (#749)
Co-authored-by: Jagan <jaganelavarasan@gmail.com>
Co-authored-by: Kartikeya Hegde <karthikey.hegde@juspay.in>
Co-authored-by: Arun Raj M <jarnura47@gmail.com>
2023-03-28 19:04:58 +05:30
..
2023-03-28 19:04:58 +05:30

router_env

Environment of payment router: logger, basic config, its environment awareness.

Example

#[instrument]
pub fn sample() -> () {
    logger::log!(
        logger::Level::INFO,
        payment_id = 8565654,
        payment_attempt_id = 596456465,
        merchant_id = 954865,
        tag = ?logger::Tag::ApiIncomingRequest,
        category = ?logger::Category::Api,
        flow = "some_flow",
        session_id = "some_session",
    );
}

Files Tree Layout

├── src                        : source code
│   └── logger                 : logger
└── tests                      : unit and integration tests
    └── test_module            : unit and integration tests