From 7ae7cb0b7cbea083dba2f896e0794a01041251b2 Mon Sep 17 00:00:00 2001 From: jitendra Date: Thu, 15 Oct 2020 15:18:07 +0530 Subject: [PATCH] Fixed invalid client id issue in velocity --- .../views/checkout/onepage/paypal-smart-button.blade.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/Webkul/Paypal/src/Resources/views/checkout/onepage/paypal-smart-button.blade.php b/packages/Webkul/Paypal/src/Resources/views/checkout/onepage/paypal-smart-button.blade.php index 1c0cc23d4..51174beb8 100644 --- a/packages/Webkul/Paypal/src/Resources/views/checkout/onepage/paypal-smart-button.blade.php +++ b/packages/Webkul/Paypal/src/Resources/views/checkout/onepage/paypal-smart-button.blade.php @@ -19,6 +19,8 @@ if (typeof paypal == 'undefined') { window.flashMessages = [{'type': 'alert-error', 'message': "SDK Validation error: 'client-id not recognized for either production or sandbox: {{core()->getConfigData('sales.paymentmethods.paypal_smart_button.client_id')}}'" }]; + window.flashMessages.alertMessage = "SDK Validation error: 'client-id not recognized for either production or sandbox: {{core()->getConfigData('sales.paymentmethods.paypal_smart_button.client_id')}}'"; + app.addFlashMessages(); return;