Klarna checkout gem update_order

attempted to update order with klarna
its took some time to figure out how to do this
here is the result:

  updated_order =  Klarna::Checkout::Order.new({cart:{items:prepare_items(order)}})
  updated_order.id = klarna_order_id
  client.update_order(updated_order)
Profile photo of tyatin

tyatin Author

Leave a Reply