• Resolved wphilfe

    (@wphilfe)


    Hi Guys,

    just have a wish for improvement. We use the pay later option for Klarna in the plugin settings. Also we set the Charge Type to “authorize” and not “capture”. The setting needs to made as per Klarna’s policy physical orders should be captured once an order is fulfilled. The problem is that after the authorization was successful the order status keeps in “pending” which is of course natural as the payment has not been captured. However, the order won’t be forwarded to our full-fillment-provider unless the status has been set to “processing”. Would be glad to have a solution for this, e.g. to have a manually option where i can select the order status after successful authorization with Klarna.

    Best.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Payment Plugins

    (@mrclayton)

    Hi @wphilfe,

    The default behavior of the plugin is to set the order’s status to on-hold if the charge is authorized. Here is the exact code in the plugin where that happens:

    https://docs.paymentplugins.com/wc-stripe/api/source-class-WC_Stripe_Payment.html#

    On my test site when I set Klarna to authorize, the order’s status is set to on-hold as expected. It looks like you might have something interfering with that process.

    If you have a staging site where this behavior can be re-created please reach out to me via the Help button in the plugin settings and we can troubleshoot.

    Kind Regards,

    Thread Starter wphilfe

    (@wphilfe)

    Hi @mrclayton,

    Yes, exactly that’s the current behavior. Again, this behavior is naturally correct. But for some merchants, like us, even if the Klarna status is authorized it would be helpful that the order’s status can be automatically set to processing after a successful authorization.

    The reason is we have a fulfillment service provider behind our shop and they are importing only orders where the status is processing.

    It’s not a bug, but a suggestion for improvement to have the ability to choose if an authorized Klarna payment should be set to processing or not.

    kind regards,

    Plugin Author Payment Plugins

    (@mrclayton)

    Hi @wphilfe,

    If you click that link I provided in my previous reply you will see there is a filter called wc_stripe_authorized_order_status that you can use to customize the order status.

    All of the non local payment methods let you customize that via a drop down in the settings page but we haven’t added it to Klarna yet. But you can use the filter to update your order status to processing.

    Example:

    add_filter('wc_stripe_authorized_order_status', function($status, $order){
        if('stripe_klarna' === $order->get_payment_method()){
            $status = 'processing';
        }
        return $status;
    }, 10, 2);

    Kind Regards,

    Thread Starter wphilfe

    (@wphilfe)

    Thank you, have a great day!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Improvement set order status to “Processing” for authorized Klarna Payments’ is closed to new replies.