feat: add merchant_name field in the response body (#1280)

Co-authored-by: Prajjwal Kumar <prajjwal.kumar@juspay.in>
Co-authored-by: Sanchith Hegde <sanchith.hegde@juspay.in>
This commit is contained in:
Amisha Prabhat
2023-07-01 16:40:46 +05:30
committed by GitHub
parent 2136326166
commit dd4ba63cc4
3 changed files with 296 additions and 321 deletions

View File

@ -1110,6 +1110,7 @@ pub async fn list_payment_methods(
.unwrap_or(Ok(services::ApplicationResponse::Json(
api::PaymentMethodListResponse {
redirect_url: merchant_account.return_url,
merchant_name: merchant_account.merchant_name,
payment_methods: payment_method_responses,
mandate_payment: payment_attempt
.and_then(|inner| inner.mandate_details)