From dd4244ded2dfe9dbc4ccf540cf54807dfdad36d2 Mon Sep 17 00:00:00 2001 From: Saksham Misra <122719607+vinfinity7@users.noreply.github.com> Date: Mon, 30 Oct 2023 00:22:16 +0530 Subject: [PATCH 1/6] Update transformers.rs --- crates/router/src/connector/payu/transformers.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/crates/router/src/connector/payu/transformers.rs b/crates/router/src/connector/payu/transformers.rs index 9a2e14215c75..750cf21ebeee 100644 --- a/crates/router/src/connector/payu/transformers.rs +++ b/crates/router/src/connector/payu/transformers.rs @@ -22,6 +22,7 @@ pub struct PayuPaymentsRequest { description: String, pay_methods: PayuPaymentMethod, continue_url: Option, + merchant_order_id: String, } #[derive(Debug, Eq, PartialEq, Serialize)] @@ -126,6 +127,8 @@ impl TryFrom<&types::PaymentsAuthorizeRouterData> for PayuPaymentsRequest { )?, pay_methods: payment_method, continue_url: None, + merchant_order_id: item.connector_request_reference_id.clone(), + }) } } From 96827669bb20cf58db0502998cad5a3cfb6cd85a Mon Sep 17 00:00:00 2001 From: Saksham Misra <122719607+vinfinity7@users.noreply.github.com> Date: Wed, 8 Nov 2023 11:40:02 +0530 Subject: [PATCH 2/6] Update transformers.rs --- crates/router/src/connector/payu/transformers.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/router/src/connector/payu/transformers.rs b/crates/router/src/connector/payu/transformers.rs index 750cf21ebeee..5178fa88a487 100644 --- a/crates/router/src/connector/payu/transformers.rs +++ b/crates/router/src/connector/payu/transformers.rs @@ -22,7 +22,7 @@ pub struct PayuPaymentsRequest { description: String, pay_methods: PayuPaymentMethod, continue_url: Option, - merchant_order_id: String, + ext_order_id: String, } #[derive(Debug, Eq, PartialEq, Serialize)] @@ -127,7 +127,7 @@ impl TryFrom<&types::PaymentsAuthorizeRouterData> for PayuPaymentsRequest { )?, pay_methods: payment_method, continue_url: None, - merchant_order_id: item.connector_request_reference_id.clone(), + ext_order_id: item.connector_request_reference_id.clone(), }) } From c38be6af15aa889611db310026e425bd2c0359ed Mon Sep 17 00:00:00 2001 From: Saksham Misra <122719607+vinfinity7@users.noreply.github.com> Date: Wed, 31 Jan 2024 19:49:33 +0530 Subject: [PATCH 3/6] Update transformers.rs --- crates/router/src/connector/payu/transformers.rs | 1 - 1 file changed, 1 deletion(-) diff --git a/crates/router/src/connector/payu/transformers.rs b/crates/router/src/connector/payu/transformers.rs index 46a223eac875..4787c14f337b 100644 --- a/crates/router/src/connector/payu/transformers.rs +++ b/crates/router/src/connector/payu/transformers.rs @@ -128,7 +128,6 @@ impl TryFrom<&types::PaymentsAuthorizeRouterData> for PayuPaymentsRequest { pay_methods: payment_method, continue_url: None, ext_order_id: item.connector_request_reference_id.clone(), - }) } } From c80f863fe96f00f8ac17f21f873373b34f2629a2 Mon Sep 17 00:00:00 2001 From: Saksham Misra <122719607+vinfinity7@users.noreply.github.com> Date: Fri, 15 Mar 2024 06:05:27 +0530 Subject: [PATCH 4/6] Commits on Suggested Changes --- crates/router/src/connector/globalpay/requests.rs | 2 +- crates/router/src/connector/payu/transformers.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/router/src/connector/globalpay/requests.rs b/crates/router/src/connector/globalpay/requests.rs index 1e5413bc8381..8e078a63cd90 100644 --- a/crates/router/src/connector/globalpay/requests.rs +++ b/crates/router/src/connector/globalpay/requests.rs @@ -310,7 +310,7 @@ pub struct Address { pub postal_code: Option>, /// The state or region of the address. ISO 3166-2 minus the country code itself. For /// example, US Illinois = IL, or in the case of GB counties Wiltshire = WI or Aberdeenshire - /// = ABD + /// = AND pub state: Option, } diff --git a/crates/router/src/connector/payu/transformers.rs b/crates/router/src/connector/payu/transformers.rs index 842e1f0841c3..130e6fc5d40e 100644 --- a/crates/router/src/connector/payu/transformers.rs +++ b/crates/router/src/connector/payu/transformers.rs @@ -22,7 +22,7 @@ pub struct PayuPaymentsRequest { description: String, pay_methods: PayuPaymentMethod, continue_url: Option, - ext_order_id: String, + ext_order_id: Option, } #[derive(Debug, Eq, PartialEq, Serialize)] From e55de7dbe01ef64bec8b08f0aacc34655afd593b Mon Sep 17 00:00:00 2001 From: Saksham Misra <122719607+vinfinity7@users.noreply.github.com> Date: Fri, 15 Mar 2024 10:32:00 +0530 Subject: [PATCH 5/6] Update transformers.rs --- crates/router/src/connector/payu/transformers.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/router/src/connector/payu/transformers.rs b/crates/router/src/connector/payu/transformers.rs index 130e6fc5d40e..ad48ee8f788d 100644 --- a/crates/router/src/connector/payu/transformers.rs +++ b/crates/router/src/connector/payu/transformers.rs @@ -127,7 +127,7 @@ impl TryFrom<&types::PaymentsAuthorizeRouterData> for PayuPaymentsRequest { )?, pay_methods: payment_method, continue_url: None, - ext_order_id: item.connector_request_reference_id.clone(), + ext_order_id: Some(item.connector_request_reference_id.clone()), }) } } From c633a5a678d3685f5914146f2eefb46dc468f357 Mon Sep 17 00:00:00 2001 From: Saksham Misra <122719607+vinfinity7@users.noreply.github.com> Date: Fri, 15 Mar 2024 22:09:40 +0530 Subject: [PATCH 6/6] Update requests.rs --- crates/router/src/connector/globalpay/requests.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/router/src/connector/globalpay/requests.rs b/crates/router/src/connector/globalpay/requests.rs index 8e078a63cd90..1e5413bc8381 100644 --- a/crates/router/src/connector/globalpay/requests.rs +++ b/crates/router/src/connector/globalpay/requests.rs @@ -310,7 +310,7 @@ pub struct Address { pub postal_code: Option>, /// The state or region of the address. ISO 3166-2 minus the country code itself. For /// example, US Illinois = IL, or in the case of GB counties Wiltshire = WI or Aberdeenshire - /// = AND + /// = ABD pub state: Option, }