From 1e7c2df1937cb6f0be4162ca8b206d8758a38616 Mon Sep 17 00:00:00 2001 From: Kirill Braslavsky Date: Tue, 2 Mar 2021 17:17:27 +0200 Subject: [PATCH] Revert "fix getting error message on order creating fail" This reverts commit 89a61b33bb48aff6529a7237299ab5bbfb0ca198. --- .../resources/js/modules/ActionHandler/CheckoutActionHandler.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/ppcp-button/resources/js/modules/ActionHandler/CheckoutActionHandler.js b/modules/ppcp-button/resources/js/modules/ActionHandler/CheckoutActionHandler.js index 06df78629..4af23327a 100644 --- a/modules/ppcp-button/resources/js/modules/ActionHandler/CheckoutActionHandler.js +++ b/modules/ppcp-button/resources/js/modules/ActionHandler/CheckoutActionHandler.js @@ -39,7 +39,7 @@ class CheckoutActionHandler { }).then(function (data) { if (!data.success) { spinner.unblock(); - errorHandler.message(data.messages); + errorHandler.message(data.data.message, true); return; } const input = document.createElement('input');