fix(mandates): handle the connector_mandate creation once and only if the payment is charged (#6327)

This commit is contained in:
Amisha Prabhat
2024-10-17 19:29:13 +05:30
committed by GitHub
parent 1a3d0a60f4
commit e14a0fe8f2
21 changed files with 366 additions and 208 deletions

View File

@ -339,6 +339,7 @@ pub async fn generate_sample_data(
shipping_cost: None,
order_tax_amount: None,
connector_transaction_data,
connector_mandate_detail: None,
};
let refund = if refunds_count < number_of_refunds && !is_failed_payment {