Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Checkout flow with vsf-payment-klarna #16

Open
mvuckovic opened this issue Nov 3, 2019 · 0 comments
Open

Checkout flow with vsf-payment-klarna #16

mvuckovic opened this issue Nov 3, 2019 · 0 comments

Comments

@mvuckovic
Copy link

Hi!

I've been trying to make this module work with vsf-payment-klarna
but didn't succeed in making end-2-end purchase so if you can point out where I'm doing wrong I'd be very grateful.

  1. Add products to cart from VSF, it'll be synced with Magento cart
  2. VSF Client calls create-or-update on VSF-API (Klarna module)
  3. VSF-API Klarna module calls Klarna and sends order & merchant_urls (confirmation, push urls point to this module)
  4. Upon purchase Klarna calls kodbruketklarnaapi/order/confirmation?id={checkout.order.id}
  5. This module creates Magento order with provided information
  6. Klarna calls push endpoint kodbruketklarnaapi/order/push?id={checkout.order.id} to confirm purchase

On step 3 it fails with:

[2019-11-03 15:54:59] main.INFO: Confirmation for Klarna order ID: abb3b683-55b1-52bd-8003-0ba634cba8f1 [] []
[2019-11-03 15:54:59] main.CRITICAL: Create order errorEnter a valid payment method and try again. [] []

I tried setting payment method but then it fails when fetching klarna quote from database.

Am I missing a step in the checkout process like creating Klarna Payment session when checkout is initiated?

I'm a bit confused because this plugin handles Klarna Checkout flow but deeply integrates with Klarna Payments module (and those two seem like separate payment solutions).

Thanks :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant