Skip to content

Commit

Permalink
fix: Currency change (#250)
Browse files Browse the repository at this point in the history
Co-authored-by: Pritish Budhiraja <[email protected]>
  • Loading branch information
dvenga and Pritish Budhiraja authored Jan 12, 2024
1 parent f72f290 commit 89f4874
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/screens/HyperSwitch/SDKPayment/SDKPaymentUtils.res
Original file line number Diff line number Diff line change
@@ -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",
Expand Down Expand Up @@ -91,15 +91,15 @@ let getTypedValueForPayment: Js.Json.t => SDKPaymentTypes.paymentType = values =
mandate_type: {
multi_use: {
amount: 10000,
currency: dictOfValues->getString("currency", "USD"),
currency: dictOfValues->getString("currency", "United States-USD")->getCurrencyValue,
},
},
}
let amount = dictOfValues->getInt("amount", 100)

{
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"),
Expand Down

0 comments on commit 89f4874

Please sign in to comment.