Skip to content

Files

Latest commit

 

History

History
18 lines (16 loc) · 389 Bytes

on_donate.md

File metadata and controls

18 lines (16 loc) · 389 Bytes

on_donate

use tosspay::TossPay;

#[tokio::main]
async fn main() {
    let toss = TossPay::new("wntjd0612".to_string());
    toss.on_donate(|data| {
        if data.amount == 1 {
            println!("{:?}", data);
        } else {
            println!("nou");
        }
    });
    loop {} // 코드가 계속 반복되고있지 않은 코드라면 이걸 넣어줘야해요
}