Skip to content

Checkout flow with vsf-payment-klarna #16

@mvuckovic

Description

@mvuckovic

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 :)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions