krokedil / klarna-checkout-for-woocommerce

Klarna Checkout for WooCommerce plugin
15 stars 23 forks source link

Handle situations where billing country is not yet set #571

Closed mntzrr closed 5 months ago

mntzrr commented 7 months ago

If the default customer location is set to "No location by default", no billing country will be assigned to the customer until they either refresh the page or manually enter their billing address. Typically this is not an issue, however, for subscriptions, since we need to verify that the country is eligible for KCO.

If no kco_wc_order_id could be found, and KCO is the chosen payment gateway, we'll attempt to create a new KCO order (session).

mntzrr commented 7 months ago

Task linked: CU-8693c1tfg Subscription: Missing WC session kco_wc_order_id during update Klarna order sequence.