Skip to content

Commit

Permalink
feat: added name to ticket order notes
Browse files Browse the repository at this point in the history
BRAVO68WEB committed Jan 20, 2024
1 parent d440db4 commit c56f40c
Showing 2 changed files with 5 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/services.rs
Original file line number Diff line number Diff line change
@@ -38,6 +38,7 @@ pub async fn generate_order(
notes_key_2: payload.ticket_type.clone(),
notes_key_3: "RCSCTF2024".to_string(),
notes_key_4: None,
notes_key_5: payload.ticket_data.name.clone(),
}
};

@@ -63,7 +64,8 @@ pub async fn generate_order(
"notes": {
"notes_key_1": order_payload.notes.notes_key_1,
"notes_key_2": order_payload.notes.notes_key_2,
"notes_key_3": order_payload.notes.notes_key_3
"notes_key_3": order_payload.notes.notes_key_3,
"notes_key_5": order_payload.notes.notes_key_5,
}
});

@@ -142,6 +144,7 @@ pub async fn check_payments(
notes_key_2: ticket.ticket_type.clone(),
notes_key_3: "RCSCTF2024".to_string(),
notes_key_4: Some(ticket_id.clone()),
notes_key_5: ticket.payee_name.clone(),
};

let updated_notes = RazorpayPaymentNotesUpdate {
1 change: 1 addition & 0 deletions src/structs.rs
Original file line number Diff line number Diff line change
@@ -59,6 +59,7 @@ pub struct CreateOrderNotes {
pub notes_key_2: String,
pub notes_key_3: String,
pub notes_key_4: Option<String>,
pub notes_key_5: String,
}

#[derive(Debug, Serialize, Deserialize)]

0 comments on commit c56f40c

Please sign in to comment.