diff --git a/src/Utilities/PaymentHelpers.res b/src/Utilities/PaymentHelpers.res index 5a47d7607..ffddf3c10 100644 --- a/src/Utilities/PaymentHelpers.res +++ b/src/Utilities/PaymentHelpers.res @@ -391,7 +391,11 @@ let rec intentCall = ( if handleUserError { handleOpenUrl(url.href) } else { - postFailedSubmitResponse(~errortype="server_error", ~message="Something went wrong") + let failedSubmitResponse = getFailedSubmitResponse( + ~errorType="server_error", + ~message="Something went wrong", + ) + resolve(failedSubmitResponse) } } else { let paymentIntentID =