Skip to content

Commit

Permalink
fix(threeds): small changes
Browse files Browse the repository at this point in the history
  • Loading branch information
prafulkoppalkar committed Mar 21, 2024
1 parent 2d3456d commit e1298d5
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 13 deletions.
1 change: 0 additions & 1 deletion src/App.res
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ let make = () => {
}, [logger])

let renderFullscreen = {
Js.log2("fullscreenMode", fullscreenMode)
switch fullscreenMode {
| "paymentloader" => <PaymentLoader />
| "fullscreen" =>
Expand Down
4 changes: 2 additions & 2 deletions src/CardUtils.res
Original file line number Diff line number Diff line change
Expand Up @@ -311,8 +311,8 @@ let calculateLuhn = value => {
let sumofUnCheckedArr = Array.reduce(unCheckArr, 0, (acc, val) => acc + val->toInt)
let totalSum = sumofCheckArr + sumofUnCheckedArr

//mod(totalSum, 10) == 0
true
mod(totalSum, 10) == 0
// true
}

let getCardBrandIcon = (cardType, paymentType) => {
Expand Down
8 changes: 0 additions & 8 deletions src/ThreeDSMethod.res
Original file line number Diff line number Diff line change
@@ -1,12 +1,4 @@
open Utils
let getKeyValue = (json, str) => {
json
->Js.Dict.get(str)
->Belt.Option.getWithDefault(Js.Dict.empty()->Js.Json.object_)
->Js.Json.decodeString
->Belt.Option.getWithDefault("")
}

@react.component
let make = () => {
let (expiryTime, setExpiryTime) = React.useState(_ => 900000.0)
Expand Down
2 changes: 0 additions & 2 deletions src/orca-loader/LoaderPaymentElement.res
Original file line number Diff line number Diff line change
Expand Up @@ -242,10 +242,8 @@ let make = (componentType, options, setIframeRef, iframeRef, mountPostMessage) =
fullscreenParam.contents != ""
? `${ApiEndpoint.sdkDomainUrl}/fullscreenIndex.html?fullscreenType=${fullscreenParam.contents}`
: `${ApiEndpoint.sdkDomainUrl}/fullscreenIndex.html?fullscreenType=fullscreen`
Js.log3("IFRAME STUFF", iframeURL, fullscreen.contents)
fullscreen.contents
? {
Js.log3("FULLSCREEN", localSelectorString, iframeID)
if iframeID == localSelectorString {
let handleFullScreenCallback = (ev: Types.event) => {
let json = ev.data->eventToJson
Expand Down

0 comments on commit e1298d5

Please sign in to comment.