From b74c81656c92e6e917872eccb490944c195b1d47 Mon Sep 17 00:00:00 2001 From: ArushKapoorJuspay <121166031+ArushKapoorJuspay@users.noreply.github.com> Date: Wed, 24 Jul 2024 22:35:01 +0530 Subject: [PATCH] fix: passing initiativeContext to TrustPay ApplePay (#519) --- src/orca-loader/Elements.res | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/orca-loader/Elements.res b/src/orca-loader/Elements.res index bf640d4df..c80e9cac9 100644 --- a/src/orca-loader/Elements.res +++ b/src/orca-loader/Elements.res @@ -6,7 +6,7 @@ open EventListenerManager open ApplePayTypes type trustPayFunctions = { - finishApplePaymentV2: (string, paymentRequestData) => Promise.t, + finishApplePaymentV2: (string, paymentRequestData, string) => Promise.t, executeGooglePayment: (string, GooglePayType.paymentDataRequest) => Promise.t, } @new external trustPayApi: JSON.t => trustPayFunctions = "TrustPayApi" @@ -565,7 +565,7 @@ let make = ( try { let trustpay = trustPayApi(secrets) - trustpay.finishApplePaymentV2(payment, paymentRequest) + trustpay.finishApplePaymentV2(payment, paymentRequest, Window.Location.hostname) ->then(res => { let value = "Payment Data Filled: New Payment Method" logger.setLogInfo(