Problem/Motivation

Klarna changes API endpoints to Kustom

Proposed resolution

Update https://github.com/centarro/kco_rest_php to use new API endpoints.
Update composer requirement to use new centarro/kco_rest release.

API changes

New endpoints:

Production: api.kustom.co
Playground: api.playground.kustom.co

How to update your credentials

  1. Log in to portal.kustom.co (or portal.playground.kustom.co)
  2. Go to Integrations in the left sidebar
  3. Select your store from the menu
  4. Click Generate new to create credentials
  5. Save your username and password

How to update your API configuration

  1. Add your new Kustom credentials to your backend set-up/configuration
  2. Update all references from klarna.com to kustom.co in your codebase
  3. Verify your checkout is working by doing a test purchase

Important: The URL is kustom.co (not .com)

Applicable services

  1. Kustom Checkout (API)
  2. Kustom Order Management (API)
  3. Kustom Settlement (API)
  4. Kustom Hosted Payment Page (API)

Read more: Kustom API endpoint switch - FAQ

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

oleksandr yushchenko created an issue. See original summary.

oleksandr yushchenko’s picture

Issue summary: View changes
jsacksick’s picture

The url is passed by the payment gateway plugin. I'm still using this module with Kustom, plus some minor overrides (for the url for example) .
The reason why I haven't backported those changes is I'm unsure whether you could still use Klarna separately or not? And I was also unsure about making changes to this contrib module, or create a new module, with a different name.... Like commerce_kustom_checkout or something...

oleksandr yushchenko’s picture

@jsacksick I can not find anything in payment gateway plugin that passes url. Klarna API URLs used by connector in KlarnaManager service and they are passed from kco_rest_php ConnectorInterface, therefore in my opinion it should be changed in centarro/kco_rest_php in a new major branch v5.x and then we can release a new major 3.x version of this module that will be based on centarro/kco_rest_php 5.x

Introducing new major versions will be safe for existing projects to not update automatically and break payments. In this case any project that uses this module will require to upgrade to a new major version and obtain new Kustom credentials.

jsacksick’s picture

I'm wondering if we should introduce a new major branch here as well.

  • a6ee1b9f committed on 3.x
    Issue #3560105: Klarna changes API endpoints to Kustom
    
jsacksick’s picture

Status: Active » Fixed

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.