diff --git a/src/Payments/GPay.res b/src/Payments/GPay.res index cd33c5557..6a1671a0f 100644 --- a/src/Payments/GPay.res +++ b/src/Payments/GPay.res @@ -27,8 +27,6 @@ let make = (~sessionObj: option, ~thirdPartySessionObj: opti let areOneClickWalletsRendered = Recoil.useSetRecoilState(RecoilAtoms.areOneClickWalletsRendered) - let isGuestCustomer = UtilityHooks.useIsGuestCustomer() - let googlePayPaymentMethodType = switch PaymentMethodsRecord.getPaymentMethodTypeFromList( ~paymentMethodListValue, ~paymentMethod="wallet", diff --git a/src/Utilities/Utils.res b/src/Utilities/Utils.res index be60d6c42..d2d12541f 100644 --- a/src/Utilities/Utils.res +++ b/src/Utilities/Utils.res @@ -804,6 +804,9 @@ let getHeaders = (~uri=?, ~token=?, ~headers=Dict.make(), ()) => { ("Content-Type", "application/json"), ("X-Client-Version", Window.version), ("X-Payment-Confirm-Source", "sdk"), + ("X-Browser-Name", OrcaLogger.arrayOfNameAndVersion->Array.get(0)->Option.getOr("Others")), + ("X-Browser-Version", OrcaLogger.arrayOfNameAndVersion->Array.get(1)->Option.getOr("0")), + ("X-Client-Platform", "web"), ]->Dict.fromArray switch (token, uri) { @@ -1328,4 +1331,3 @@ let handleFailureResponse = (~message, ~errorType) => ]->getJsonFromArrayOfJson, ), ]->getJsonFromArrayOfJson - diff --git a/src/orca-loader/PaymentSessionMethods.res b/src/orca-loader/PaymentSessionMethods.res index 828484ba6..fda18eaec 100644 --- a/src/orca-loader/PaymentSessionMethods.res +++ b/src/orca-loader/PaymentSessionMethods.res @@ -168,7 +168,12 @@ let getCustomerSavedPaymentMethods = ( PaymentUtils.getStateJson() ->then(stateJson => { - logger.setLogInfo(~value="States Loaded", ~eventName=APPLE_PAY_FLOW, ~paymentMethod="APPLE_PAY", ()) + logger.setLogInfo( + ~value="States Loaded", + ~eventName=APPLE_PAY_FLOW, + ~paymentMethod="APPLE_PAY", + (), + ) stateJson->completeApplePayPayment }) ->catch(err => { @@ -226,7 +231,12 @@ let getCustomerSavedPaymentMethods = ( PaymentUtils.getStateJson() ->then( stateJson => { - logger.setLogInfo(~value="States Loaded", ~eventName=GOOGLE_PAY_FLOW, ~paymentMethod="GOOGLE_PAY", ()) + logger.setLogInfo( + ~value="States Loaded", + ~eventName=GOOGLE_PAY_FLOW, + ~paymentMethod="GOOGLE_PAY", + (), + ) stateJson->completeGooglePayPayment }, ) @@ -423,7 +433,7 @@ let getCustomerSavedPaymentMethods = ( ->Identity.anyTypeToJson ->resolve }) - ->catch(err => { + ->catch(_ => { updateCustomerPaymentMethodsRef(~isFilterApplePay=true, ~isFilterGooglePay=true) {