krokedil / klarna-checkout-for-woocommerce

Klarna Checkout for WooCommerce plugin
15 stars 23 forks source link

Extend regexp validation to handle the new Klarna UUID format for merchant API keys #587

Closed didkan closed 2 months ago

didkan commented 2 months ago

Fixes #586

In short: Klarna has changed their API key format to using UUIDs. This plugin is not compatible with the new UUID format. This PR fixes that while still allowing the old API key format. Read more in the linked issue.

mntzrr commented 2 months ago

Thanks for bringing this to our attention through the issue, and by creating this PR! Since the proposed changes are backwards-compatible with the existing API key structure, and I've verified that it is indeed so, I'll merge this.

I've also verified that Klarna now assign the merchant a UUID as the username when creating new Klarna API keys on the merchant portal.