Hello,
Contact Klarna developers to find out how to use their API with the WP and WooCommerce and where to place the custom code according to their requirements. We could just recommend you to use child theme for any changes you plan in theme.
But probably you just need the additional plugin https://wordpress.org/plugins/klarna-payments-for-woocommerce/
Regards