feat(payment_method): set the initial payment method as default until its explicitly set (#3970)

This commit is contained in:
Amisha Prabhat
2024-03-06 18:10:59 +05:30
committed by GitHub
parent d220e815dc
commit 34c1b905b1
3 changed files with 24 additions and 16 deletions

View File

@ -380,6 +380,7 @@ where
} else {
None
};
resp.payment_method_id = generate_id(consts::ID_LENGTH, "pm");
payment_methods::cards::create_payment_method(
db,