fix(router): add customer_id validation for payment method create flow (#2543)

This commit is contained in:
Shankar Singh C
2023-10-12 15:00:56 +05:30
committed by GitHub
parent 0889a6ed06
commit 53d7604603
3 changed files with 17 additions and 15 deletions

View File

@ -247,10 +247,9 @@ pub async fn save_payout_data_to_locker(
&merchant_account.merchant_id,
None,
card_details_encrypted,
key_store,
)
.await
.change_context(errors::ApiErrorResponse::InternalServerError)
.attach_printable("Failed to save payment method")?;
.await?;
Ok(())
}