• Resolved mhsould

    (@mhsould)


    Hi,

    We need to attach custom data with every order that is made. Which shouldn’t be a problem with WooCommerce’s sessions and a hook funcion when the plugin is creating the order. But there is a problem when the order is created directly from Klarna (step 3 in the integration flow chart) and we can’t fetch the custom data from the customer’s session data.

    My question are:
    1. Is there a way to pass this custom data on to Klarna direclty so we can fetch it when the order is created? My guess is not.
    2. Us there a way to disable the later creation of orders from Klarna? So we can better control so that orders with the customer data isen’t billed for or created.

    Thank you in advance!

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Contributor Krokedil

    (@krokedil)

    Hi,

    If an order gets created, as you described “step 3 in the integration flow chart” then in this case the order has not been created the correct way. This means that the order has been created via the API Callback function and this only happens if something went wrong in the checkout process.

    1. No, unfortunately you cannot send custom data to Klarna and then access it later in the API Callback sequence.

    2. No, we do not have a setting for disabling the API Callback function.

    We are however developing a new version of Klarna Checkout that will change the checkout flow entirely. This means that all orders must be successfully made in WooCommerce before anything is created in Klarna’s system. This also means that the API Callback function will be removed. This version of Klarna Checkout will be released very soon.

    Best Regards,
    Kristian Andersson

    Thread Starter mhsould

    (@mhsould)

    Perfect, it sounds that the new version will solve our problem!

    Thank you for the quick reply.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Passing on custom data to Klarna and back’ is closed to new replies.