• Resolved vestaxpdx

    (@vestaxpdx)


    Hi

    We cannot get the payment method to appear in woocommerce at the checkout page. We have a similar site with the same code base that is working fine. We have also tried Klarna direct for support and they have been no help.

    Is there anything we can do to help debug. We are getting OK in the logs though…

    {
      "id": "_HIDDEN_",
      "type": "POST",
      "title": "KP Create Session",
      "request": {
        "headers": {
          "Authorization": "Basic _HIDDEN_",
          "Content-Type": "application/json"
        },
        "method": "POST",
        "user-agent": "WordPress/5.7.1; https://malindarlin.com - WooCommerce: 5.2.0 - KP:2.4.3 - PHP Version: 7.3.27 - Krokedil",
        "body": {
          "purchase_country": "GB",
          "purchase_currency": "GBP",
          "locale": "en-GB",
          "order_amount": 15099,
          "order_tax_amount": 0,
          "order_lines": [
            {
              "reference": "MD-katie-vest-1",
              "name": "Katie Vest - Medium",
              "quantity": 1,
              "unit_price": 14500,
              "tax_rate": 0,
              "total_amount": 14500,
              "total_tax_amount": 0,
              "total_discount_amount": 0,
              "product_url": "https://malindarlin.com/shop/katie-vest/?attribute_size=Medium",
              "image_url": "https://malindarlin.com/wp-content/uploads/2021/04/Malin-Product-KatieVest-SS21-156x200.jpg"
            },
            {
              "type": "shipping_fee",
              "reference": "flat_rate:1",
              "name": "Flat rate",
              "quantity": 1,
              "unit_price": 599,
              "tax_rate": 0,
              "total_amount": 599,
              "total_tax_amount": 0
            }
          ],
          "customer": {
            "type": "person"
          },
          "options": null,
          "merchant_urls": {
            "authorization": "https://malindarlin.com/wc-api/KP_WC_AUTHORIZATION"
          }
        },
        "timeout": 10
      },
      "response": {
        "body": {
          "headers": {},
          "body": "{\n  \"session_id\" : \"_HIDDEN_\",\n  \"client_token\" : \"HIDDEN\",\n  \"payment_method_categories\" : [ {\n    \"identifier\" : \"pay_over_time\",\n    \"name\" : \"3 interest-free instalments\",\n    \"asset_urls\" : {\n      \"descriptive\" : \"https://x.klarnacdn.net/payment-method/assets/badges/generic/klarna.svg\",\n      \"standard\" : \"https://x.klarnacdn.net/payment-method/assets/badges/generic/klarna.svg\"\n    }\n  } ]\n}",
          "response": {
            "code": 200,
            "message": "OK"
          },
          "cookies": [],
          "filename": null,
          "http_response": {
            "data": null,
            "headers": null,
            "status": null
          }
        },
        "code": 200
      },
      "timestamp": "2021-04-19 12:32:08",
      "plugin_version": "2.4.3"
    }
    • This topic was modified 3 years, 7 months ago by vestaxpdx.
Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Support montazar

    (@montazaraj)

    Hello there,

    I can see that the plugin is loaded during checkout but it is not being displayed. This usually happens due to authorization errors. Can you please search for the keyword “error” in the Klarna Payments log?

    We have a list of error codes and what they mean in our documentation.

    Thread Starter vestaxpdx

    (@vestaxpdx)

    I can see a couple 401’s but I have created new API details and when saving your plugin never complains. If you enter the wrong API details it does complain when you save.

    It seems like your Klarna UK Production credentials are incorrect, please verify or remove these credentials and save again. API error code: 401, Klarna API error message: Unauthorized, Klarna correlation_id:

    after entering correct API details I do not see the above message. So I believe they must be correct and working but still with this new set of API details the payment method does not appear.

    I find the plugin confusing for entering API details. Which countries should we enter it for? I have just copied the same API details for UK and Sweden since we offer GBP and SEK currency. I have tried Just Sweden or Just UK still the same, no payment method ever appears.

    Nowhere in the Klarna dashboard does it say what countries are supported for our account. Maybe it is something go do with that but Klarna support is the worst I have ever experienced.

    I hope you can help.

    Hi,

    Klarna Merchant Support can inform you of what countries and currencies your Klarna account is configured for.

    If you are still unable to view Klarna as a payment option at checkout, you can also try testing with the default Storefront theme, as there may be incompatibilities with your current theme.

    I see you’re using Aelia currency switcher, so also verify that the Klarna Payments payment option is enabled for the applicable currency (GBP).

    I hope that helps.

    Thread Starter vestaxpdx

    (@vestaxpdx)

    Thanks you for the heads up about Aelia currency switcher yes it was indeed this plugin causing the issue.

    For some reason on the other site we run it had auto added all payment gateways in Aelia currency switcher so didn’t think to check there.

    It’s working for GBP now but not for SEK even though Klarna is added as a payment gateway in Aelia currency switcher.

    Perhaps that is an account level issue with Klarna and Sweden being enabled.

    Thanks again.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Payment Method Never Appears’ is closed to new replies.