From 0f95082c0a6a0586fdc51e737348aaeffe23725a Mon Sep 17 00:00:00 2001 From: Pritish Budhiraja <1805317@kiit.ac.in> Date: Fri, 12 Jan 2024 20:18:24 +0530 Subject: [PATCH 1/7] fix: curruncy fix --- src/screens/HyperSwitch/SDKPayment/SDKPaymentUtils.res | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/screens/HyperSwitch/SDKPayment/SDKPaymentUtils.res b/src/screens/HyperSwitch/SDKPayment/SDKPaymentUtils.res index 352c04a30..93baaeaaf 100644 --- a/src/screens/HyperSwitch/SDKPayment/SDKPaymentUtils.res +++ b/src/screens/HyperSwitch/SDKPayment/SDKPaymentUtils.res @@ -91,7 +91,7 @@ let getTypedValueForPayment: Js.Json.t => SDKPaymentTypes.paymentType = values = mandate_type: { multi_use: { amount: 10000, - currency: dictOfValues->getString("currency", "United States-USD"), + currency: dictOfValues->getString("currency", "USD"), }, }, } From 3ffb99c112d65d91ed92a4e3245061ef2f94137b Mon Sep 17 00:00:00 2001 From: Pritish Budhiraja <1805317@kiit.ac.in> Date: Fri, 12 Jan 2024 20:50:39 +0530 Subject: [PATCH 2/7] fix: currency change --- src/screens/HyperSwitch/SDKPayment/SDKPaymentUtils.res | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/screens/HyperSwitch/SDKPayment/SDKPaymentUtils.res b/src/screens/HyperSwitch/SDKPayment/SDKPaymentUtils.res index 93baaeaaf..d3f339871 100644 --- a/src/screens/HyperSwitch/SDKPayment/SDKPaymentUtils.res +++ b/src/screens/HyperSwitch/SDKPayment/SDKPaymentUtils.res @@ -1,7 +1,7 @@ let initialValueForForm: HSwitchSettingTypes.profileEntity => SDKPaymentTypes.paymentType = defaultBusinessProfile => { { amount: 10000, - currency: "United States-USD", + currency: "USD", profile_id: defaultBusinessProfile.profile_id, description: "Default value", customer_id: "hyperswitch_sdk_demo_id", @@ -99,7 +99,7 @@ let getTypedValueForPayment: Js.Json.t => SDKPaymentTypes.paymentType = values = { amount, - currency: dictOfValues->getString("currency", "United States-USD"), + currency: dictOfValues->getString("currency", "USD"), profile_id: dictOfValues->getString("profile_id", ""), customer_id: dictOfValues->getString("customer_id", ""), description: dictOfValues->getString("description", "Default value"), From 2d80f8e13aa8fb98bcb1e4c4a15362a3ca1d2448 Mon Sep 17 00:00:00 2001 From: Pritish Budhiraja <1805317@kiit.ac.in> Date: Fri, 12 Jan 2024 21:17:27 +0530 Subject: [PATCH 3/7] fix: Currency change --- src/screens/HyperSwitch/SDKPayment/SDKPaymentUtils.res | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/screens/HyperSwitch/SDKPayment/SDKPaymentUtils.res b/src/screens/HyperSwitch/SDKPayment/SDKPaymentUtils.res index d3f339871..df8ff34f0 100644 --- a/src/screens/HyperSwitch/SDKPayment/SDKPaymentUtils.res +++ b/src/screens/HyperSwitch/SDKPayment/SDKPaymentUtils.res @@ -1,7 +1,7 @@ let initialValueForForm: HSwitchSettingTypes.profileEntity => SDKPaymentTypes.paymentType = defaultBusinessProfile => { { amount: 10000, - currency: "USD", + currency: "United States-USD", profile_id: defaultBusinessProfile.profile_id, description: "Default value", customer_id: "hyperswitch_sdk_demo_id", @@ -91,7 +91,7 @@ let getTypedValueForPayment: Js.Json.t => SDKPaymentTypes.paymentType = values = mandate_type: { multi_use: { amount: 10000, - currency: dictOfValues->getString("currency", "USD"), + currency: "USD", }, }, } @@ -99,7 +99,7 @@ let getTypedValueForPayment: Js.Json.t => SDKPaymentTypes.paymentType = values = { amount, - currency: dictOfValues->getString("currency", "USD"), + currency: dictOfValues->getString("currency", "United States-USD"), profile_id: dictOfValues->getString("profile_id", ""), customer_id: dictOfValues->getString("customer_id", ""), description: dictOfValues->getString("description", "Default value"), From ae8efc584e6e226f85da2e2aa110f3886a1f2dfa Mon Sep 17 00:00:00 2001 From: Pritish Budhiraja <1805317@kiit.ac.in> Date: Fri, 12 Jan 2024 21:21:37 +0530 Subject: [PATCH 4/7] fix: currency changes --- src/screens/HyperSwitch/SDKPayment/SDKPaymentUtils.res | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/screens/HyperSwitch/SDKPayment/SDKPaymentUtils.res b/src/screens/HyperSwitch/SDKPayment/SDKPaymentUtils.res index df8ff34f0..086d57904 100644 --- a/src/screens/HyperSwitch/SDKPayment/SDKPaymentUtils.res +++ b/src/screens/HyperSwitch/SDKPayment/SDKPaymentUtils.res @@ -91,7 +91,7 @@ let getTypedValueForPayment: Js.Json.t => SDKPaymentTypes.paymentType = values = mandate_type: { multi_use: { amount: 10000, - currency: "USD", + currency: dictOfValues->getString("currency", "USD")->getCurrencyValue, }, }, } From 57e76d0c32cedeea291243d7d13b7ebbd90a982a Mon Sep 17 00:00:00 2001 From: Pritish Budhiraja <1805317@kiit.ac.in> Date: Fri, 12 Jan 2024 21:23:41 +0530 Subject: [PATCH 5/7] Merge branch 'main' of github.com:juspay/hyperswitch-control-center into currency-change --- src/screens/HyperSwitch/SDKPayment/SDKPaymentUtils.res | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/screens/HyperSwitch/SDKPayment/SDKPaymentUtils.res b/src/screens/HyperSwitch/SDKPayment/SDKPaymentUtils.res index 086d57904..8ad5bc54f 100644 --- a/src/screens/HyperSwitch/SDKPayment/SDKPaymentUtils.res +++ b/src/screens/HyperSwitch/SDKPayment/SDKPaymentUtils.res @@ -1,7 +1,7 @@ let initialValueForForm: HSwitchSettingTypes.profileEntity => SDKPaymentTypes.paymentType = defaultBusinessProfile => { { amount: 10000, - currency: "United States-USD", + currency: "USD", profile_id: defaultBusinessProfile.profile_id, description: "Default value", customer_id: "hyperswitch_sdk_demo_id", @@ -99,7 +99,7 @@ let getTypedValueForPayment: Js.Json.t => SDKPaymentTypes.paymentType = values = { amount, - currency: dictOfValues->getString("currency", "United States-USD"), + currency: dictOfValues->getString("currency", "USD"), profile_id: dictOfValues->getString("profile_id", ""), customer_id: dictOfValues->getString("customer_id", ""), description: dictOfValues->getString("description", "Default value"), From 0a088f4d4cccc737bcb95bd582e44fc4490d975c Mon Sep 17 00:00:00 2001 From: Pritish Budhiraja <1805317@kiit.ac.in> Date: Fri, 12 Jan 2024 21:26:03 +0530 Subject: [PATCH 6/7] fix: currency changes --- src/screens/HyperSwitch/SDKPayment/SDKPaymentUtils.res | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/screens/HyperSwitch/SDKPayment/SDKPaymentUtils.res b/src/screens/HyperSwitch/SDKPayment/SDKPaymentUtils.res index 8ad5bc54f..31e35445a 100644 --- a/src/screens/HyperSwitch/SDKPayment/SDKPaymentUtils.res +++ b/src/screens/HyperSwitch/SDKPayment/SDKPaymentUtils.res @@ -1,7 +1,7 @@ let initialValueForForm: HSwitchSettingTypes.profileEntity => SDKPaymentTypes.paymentType = defaultBusinessProfile => { { amount: 10000, - currency: "USD", + currency: "United States-USD", profile_id: defaultBusinessProfile.profile_id, description: "Default value", customer_id: "hyperswitch_sdk_demo_id", @@ -91,7 +91,7 @@ let getTypedValueForPayment: Js.Json.t => SDKPaymentTypes.paymentType = values = mandate_type: { multi_use: { amount: 10000, - currency: dictOfValues->getString("currency", "USD")->getCurrencyValue, + currency: dictOfValues->getString("currency", "United States-USD")->getCurrencyValue, }, }, } @@ -99,7 +99,7 @@ let getTypedValueForPayment: Js.Json.t => SDKPaymentTypes.paymentType = values = { amount, - currency: dictOfValues->getString("currency", "USD"), + currency: dictOfValues->getString("currency", "United States-USD"), profile_id: dictOfValues->getString("profile_id", ""), customer_id: dictOfValues->getString("customer_id", ""), description: dictOfValues->getString("description", "Default value"), From b682b5b0140eb4dae3c1dd689ce37b87903a0770 Mon Sep 17 00:00:00 2001 From: Pritish Budhiraja <1805317@kiit.ac.in> Date: Fri, 12 Jan 2024 21:27:13 +0530 Subject: [PATCH 7/7] fix: currency changes --- src/screens/HyperSwitch/SDKPayment/SDKPaymentUtils.res | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/screens/HyperSwitch/SDKPayment/SDKPaymentUtils.res b/src/screens/HyperSwitch/SDKPayment/SDKPaymentUtils.res index 5c54eb91c..31e35445a 100644 --- a/src/screens/HyperSwitch/SDKPayment/SDKPaymentUtils.res +++ b/src/screens/HyperSwitch/SDKPayment/SDKPaymentUtils.res @@ -1,7 +1,7 @@ let initialValueForForm: HSwitchSettingTypes.profileEntity => SDKPaymentTypes.paymentType = defaultBusinessProfile => { { amount: 10000, - currency: "USD", + currency: "United States-USD", profile_id: defaultBusinessProfile.profile_id, description: "Default value", customer_id: "hyperswitch_sdk_demo_id", @@ -99,7 +99,7 @@ let getTypedValueForPayment: Js.Json.t => SDKPaymentTypes.paymentType = values = { amount, - currency: dictOfValues->getString("currency", "USD"), + currency: dictOfValues->getString("currency", "United States-USD"), profile_id: dictOfValues->getString("profile_id", ""), customer_id: dictOfValues->getString("customer_id", ""), description: dictOfValues->getString("description", "Default value"),