Skip to content

Commit

Permalink
Merge branch 'main' into samsung-pay-dev
Browse files Browse the repository at this point in the history
  • Loading branch information
PritishBudhiraja authored Nov 26, 2024
2 parents 4dd3878 + bbc0283 commit f93542a
Show file tree
Hide file tree
Showing 6 changed files with 22 additions and 13 deletions.
9 changes: 9 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
## [0.103.2](https://github.com/juspay/hyperswitch-web/compare/v0.103.1...v0.103.2) (2024-11-26)

## [0.103.1](https://github.com/juspay/hyperswitch-web/compare/v0.103.0...v0.103.1) (2024-11-25)


### Bug Fixes

* crypto currency payment method ([#810](https://github.com/juspay/hyperswitch-web/issues/810)) ([c3aed42](https://github.com/juspay/hyperswitch-web/commit/c3aed42b9f218b8c44e2574f3032081cd7a45999))

# [0.103.0](https://github.com/juspay/hyperswitch-web/compare/v0.102.9...v0.103.0) (2024-11-21)


Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "orca-payment-page",
"version": "0.103.0",
"version": "0.103.2",
"main": "index.js",
"private": true,
"dependencies": {
Expand Down
15 changes: 8 additions & 7 deletions src/Payments/PaymentMethodsWrapper.res
Original file line number Diff line number Diff line change
Expand Up @@ -40,17 +40,15 @@ let make = (~paymentType: CardThemeType.mode, ~paymentMethodName: string) => {
let areRequiredFieldsValid = Recoil.useRecoilValueFromAtom(areRequiredFieldsValid)
let areRequiredFieldsEmpty = Recoil.useRecoilValueFromAtom(areRequiredFieldsEmpty)

let complete = areRequiredFieldsValid

React.useEffect(() => {
setFieldComplete(_ => complete)
setFieldComplete(_ => areRequiredFieldsValid)
None
}, [complete])
}, [areRequiredFieldsValid])

let empty = areRequiredFieldsEmpty

UtilityHooks.useHandlePostMessages(
~complete,
~complete=areRequiredFieldsValid,
~empty,
~paymentType=paymentMethodDetails.paymentMethodName,
)
Expand All @@ -59,7 +57,7 @@ let make = (~paymentType: CardThemeType.mode, ~paymentMethodName: string) => {
let json = ev.data->safeParse
let confirm = json->getDictFromJson->ConfirmType.itemToObjMapper
if confirm.doSubmit {
if complete {
if areRequiredFieldsValid {
let countryCode =
Country.getCountry(paymentMethodName)
->Array.filter(item => item.countryName == country)
Expand Down Expand Up @@ -105,7 +103,10 @@ let make = (~paymentType: CardThemeType.mode, ~paymentMethodName: string) => {
paymentMethodName,
isManualRetryEnabled,
phoneNumber.value,
(selectedBank, currency, requiredFieldsBody),
selectedBank,
currency,
requiredFieldsBody,
areRequiredFieldsValid,
))
useSubmitPaymentData(submitCallback)
<div
Expand Down
1 change: 1 addition & 0 deletions src/Utilities/DynamicFieldsUtils.res
Original file line number Diff line number Diff line change
Expand Up @@ -290,6 +290,7 @@ let useRequiredFieldsEmptyAndValid = (
cardExpiry,
cvcNumber,
bankAccountNumber,
cryptoCurrencyNetworks,
))
}

Expand Down
4 changes: 1 addition & 3 deletions webpack.common.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,16 +50,14 @@ const getEnvironmentDomain = (prodDomain, integDomain, defaultDomain) => {

const backendDomain = getEnvironmentDomain("checkout", "dev", "beta");
const confirmDomain = getEnvironmentDomain("api", "integ-api", "sandbox");
const logDomain = getEnvironmentDomain("api", "integ-api", "sandbox");

const backendEndPoint =
envBackendUrl || `https://${backendDomain}.hyperswitch.io/api`;

const confirmEndPoint =
envBackendUrl || `https://${confirmDomain}.hyperswitch.io`;

const logEndpoint =
envLoggingUrl || `https://${logDomain}.hyperswitch.io/logs/sdk`;
const logEndpoint = envLoggingUrl;

const loggingLevel = "DEBUG";
const maxLogsPushedPerEventName = 100;
Expand Down

0 comments on commit f93542a

Please sign in to comment.