Hi, ich habe Klarna Payments installiert, den Zahlungsarten und Versandarten hinterlegt.
Im Checkout wird bei diesen Zahlungsarten dann „display: none“ gemacht und in der Chrome Console steht:
api.js:1 Uncaught InvalidClientTokenError: The client token is invalid. Make sure it has not been tampered with in any way.
at new t (https://x.klarnacdn.net/kp/lib/v1/api.js:1:4154)
at Object.init (https://x.klarnacdn.net/kp/lib/v1/api.js:1:27488)
at window.klarnaAsyncCallback (https://example.de/checkout/shippingPayment:701:17)
at i (https://x.klarnacdn.net/kp/lib/v1/api.js:1:40477)
at r (https://x.klarnacdn.net/kp/lib/v1/api.js:1:40268)
at Object. (https://x.klarnacdn.net/kp/lib/v1/api.js:1:39605)
at t (https://x.klarnacdn.net/kp/lib/v1/api.js:1:101)
at https://x.klarnacdn.net/kp/lib/v1/api.js:1:452
at https://x.klarnacdn.net/kp/lib/v1/api.js:1:462
1592334401_964fc7d7100fdd6b8fa0e96684637b79.js:854 Uncaught ReferenceError: Klarna is not defined
at Plugin.loadInstantShoppingButton (1592334401_964fc7d7100fdd6b8fa0e96684637b79.js:854)
at Plugin.init (1592334401_964fc7d7100fdd6b8fa0e96684637b79.js:854)
at PluginBase (1592334401_964fc7d7100fdd6b8fa0e96684637b79.js:144)
at new Plugin (1592334401_964fc7d7100fdd6b8fa0e96684637b79.js:152)
at HTMLDivElement. (1592334401_964fc7d7100fdd6b8fa0e96684637b79.js:152)
at Function.each (1592334401_964fc7d7100fdd6b8fa0e96684637b79.js:5)
at k.fn.init.each (1592334401_964fc7d7100fdd6b8fa0e96684637b79.js:5)
at k.fn.init.pluginFn [as bestitInstantShoppingLoadButton] (1592334401_964fc7d7100fdd6b8fa0e96684637b79.js:152)
at EventEmitter._initSinglePlugin (1592334401_964fc7d7100fdd6b8fa0e96684637b79.js:193)
at EventEmitter._initPlugin (1592334401_964fc7d7100fdd6b8fa0e96684637b79.js:190)
und im Error-Log(System)
Symfony\Component\DependencyInjection\Exception\ServiceNotFoundException: You have requested a non-existent service "bestit_klarna_order_management.sw_modules.s_articles". Did you mean one of these: "bestit_klarna_order_management.guzzle_http.client", "bestit_klarna_order_management.sw_modules.detached_shop", "bestit_klarna_order_management.sw_modules.s_admin", "bestit_klarna_order_management.sw_modules.s_basket"? in /vendor/symfony/dependency-injection/Container.php:348 Stack trace:
#0 /engine/Shopware/Components/DependencyInjection/Container.php(220): Symfony\Component\DependencyInjection\Container->get('bestit_klarna_o...', 1)
#1 /engine/Shopware/Components/DependencyInjection/Container.php(141): Shopware\Components\DependencyInjection\Container->doLoad('bestit_klarna_o...', 'bestit_klarna_o...', 1)
#2 /engine/Library/Enlight/Controller/Action.php(413): Shopware\Components\DependencyInjection\Container->get('bestit_klarna_o...')
#3 /custom/plugins/BestitKlarnaPayments/Controllers/Frontend/BestitKlarnaInstantShopping.php(86): Enlight_Controller_Action->get('bestit_klarna_o...')
#4 /engine/Library/Enlight/Controller/Action.php(183): Shopware_Controllers_Frontend_BestitKlarnaInstantShopping->preDispatch()
#5 /engine/Library/Enlight/Controller/Dispatcher/Default.php(478): Enlight_Controller_Action->dispatch('previewKlarnaIn...')
#6 /engine/Library/Enlight/Controller/Front.php(228): Enlight_Controller_Dispatcher_Default->dispatch(Object(Enlight_Controller_Request_RequestHttp), Object(Enlight_Controller_Response_ResponseHttp))
#7 /engine/Shopware/Kernel.php(188): Enlight_Controller_Front->dispatch()
#8 /vendor/symfony/http-kernel/HttpCache/SubRequestHandler.php(102): Shopware\Kernel->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#9 /vendor/symfony/http-kernel/HttpCache/HttpCache.php(453): Symfony\Component\HttpKernel\HttpCache\SubRequestHandler::handle(Object(Shopware\Kernel), Object(Symfony\Component\HttpFoundation\Request), 1, true)
#10 /engine/Shopware/Components/HttpCache/AppCache.php(261): Symfony\Component\HttpKernel\HttpCache\HttpCache->forward(Object(Symfony\Component\HttpFoundation\Request), true, NULL)
#11 /vendor/symfony/http-kernel/HttpCache/HttpCache.php(426): Shopware\Components\HttpCache\AppCache->forward(Object(Symfony\Component\HttpFoundation\Request), true)
#12 /vendor/symfony/http-kernel/HttpCache/HttpCache.php(317): Symfony\Component\HttpKernel\HttpCache\HttpCache->fetch(Object(Symfony\Component\HttpFoundation\Request), true)
#13 /engine/Shopware/Components/HttpCache/AppCache.php(188): Symfony\Component\HttpKernel\HttpCache\HttpCache->lookup(Object(Symfony\Component\HttpFoundation\Request), true)
#14 /vendor/symfony/http-kernel/HttpCache/HttpCache.php(192): Shopware\Components\HttpCache\AppCache->lookup(Object(Symfony\Component\HttpFoundation\Request), true)
#15 /engine/Shopware/Components/HttpCache/AppCache.php(113): Symfony\Component\HttpKernel\HttpCache\HttpCache->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#16 /www/htdocs/w019afb4/example.de/shop/shopware.php(122): Shopware\Components\HttpCache\AppCache->handle(Object(Symfony\Component\HttpFoundation\Request))
#17
Es gibt keinen “bestit_klarna_order_management.sw_modules.s_articles”, es gäbe ein “bestit_klarna_order_management.sw_modules.s_admin”. Ist das der Fehler?
Leider besteht das Problem immer noch. Der Shop ist mittlerweile auf SW 5.6.9,
Im Checkout stehen keine Klarna Payments zur Verfügung. Diese blitzen nur kurz auf.
Bug: Im Kundenkonto lässt sich die Klarna Zahlart auswählen, Geht man dann auf Kasse, landet man in einer deathloop der Zahlungsarten bis man ein ggf vorhandene (Vorkasse) auswählt.