Skip to content

Commit

Permalink
fix: passing initiativeContext to TrustPay ApplePay (#519)
Browse files Browse the repository at this point in the history
  • Loading branch information
ArushKapoorJuspay authored Jul 24, 2024
1 parent 20f3de3 commit b74c816
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/orca-loader/Elements.res
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ open EventListenerManager
open ApplePayTypes

type trustPayFunctions = {
finishApplePaymentV2: (string, paymentRequestData) => Promise.t<JSON.t>,
finishApplePaymentV2: (string, paymentRequestData, string) => Promise.t<JSON.t>,
executeGooglePayment: (string, GooglePayType.paymentDataRequest) => Promise.t<JSON.t>,
}
@new external trustPayApi: JSON.t => trustPayFunctions = "TrustPayApi"
Expand Down Expand Up @@ -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(
Expand Down

0 comments on commit b74c816

Please sign in to comment.