mitrpaka / commerce_klarna_checkout Goto Github PK
View Code? Open in Web Editor NEWDrupal 8 version of Commerce Klarna Checkout module
Home Page: https://www.drupal.org/project/commerce_klarna_checkout
Drupal 8 version of Commerce Klarna Checkout module
Home Page: https://www.drupal.org/project/commerce_klarna_checkout
Hey.
Not sure if you monitor issues on d.o, but just wanted to let you know I fixed and commited a bug here: https://www.drupal.org/project/commerce_klarna_checkout/issues/2940621#comment-12457616
:)
When using klarna checkout we don't want the user to enter the contact information manually before the Klarna iframe. We want to get all user data from Klarna.
This is the ideal workflow:
Cart -> Klarna checkout iframe -> Completion message
After we disable all user-address related panes we cant checkout.
This is the error message:
Message | InvalidArgumentException: The $step_id cannot be empty. in Drupal\commerce_checkout\Plugin\Commerce\CheckoutFlow\CheckoutFlowBase->buildForm() (line 235 of /app/web/modules/contrib/commerce/modules/checkout/src/Plugin/Commerce/CheckoutFlow/CheckoutFlowBase.php). |
---|
This is how the checkout flow is configured (D8):
https://www.evernote.com/shard/s59/sh/8e9462e2-28e6-43fd-ac84-f3ae67bf523b/85b23d06c3ff11bfc0b8e16398f38d4b
This is how it looks in the D7 module (our current setup):
https://www.evernote.com/shard/s59/sh/5f756fbb-edb5-4be4-8a3a-2ed4442df009/e0bc1315f5aa352d6d15fbd6dbbeb2fa
I'm receiving this error on checkout complete
Error: Call to a member function setState() on boolean in Drupal\commerce_klarna_checkout\Plugin\Commerce\PaymentGateway\KlarnaCheckout->onNotify() (line 230 of /app/web/modules/contrib/commerce_klarna_checkout/src/Plugin/Commerce/PaymentGateway/KlarnaCheckout.php) #0
On line 230 I find this:
$payment->setState('completed');
I don't know if States are case-sensitive but maybe we need to change it to Completed.
See the following link:
https://docs.drupalcommerce.org/commerce2/developer-guide/orders/workflows/workflow-states
The API is supporting those countries as well so it should be relatively easy to add support for them.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.