Giter Club home page Giter Club logo

commerce_klarna_checkout's People

Contributors

mitrpaka avatar tuutti avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar

Forkers

drugan

commerce_klarna_checkout's Issues

Error when removing panes in checkout

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

Error: Call to a member function setState()

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.