diff --git a/Source/WebCore/Modules/paymentrequest/PaymentRequest.cpp b/Source/WebCore/Modules/paymentrequest/PaymentRequest.cpp index f7d0095ae20a..a56bfafe2cb5 100644 --- a/Source/WebCore/Modules/paymentrequest/PaymentRequest.cpp +++ b/Source/WebCore/Modules/paymentrequest/PaymentRequest.cpp @@ -604,7 +604,8 @@ ExceptionOr PaymentRequest::completeMerchantValidation(Event& event, RefmerchantValidationCompleted(m_merchantSessionPromise->result()); + Ref activePaymentHandler = *this->activePaymentHandler(); + auto exception = activePaymentHandler->merchantValidationCompleted(m_merchantSessionPromise->result()); if (exception.hasException()) { abortWithException(exception.releaseException()); return;