Support » Plugin: Shipping Zones by Drawing for WooCommerce » Klarna Payment Gateway Support

  • Roland

    (@rolandriddell)


    Hello,

    I’m using the Klarna Payments plugin (https://wordpress.org/plugins/klarna-payments-for-woocommerce). When I enter an address on the checkout page that is within the map region/zone that I’ve created, I get the following message, “There are no shipping options available. Please ensure that your address has been entered correctly, or contact us if you need any help.”

    When I disable Klarna checkout and use a different payment gateway (e.g. Cash on delivery). The shipping calculation works as expected. If your plugin doesn’t support the Klarna payment gateway, is that a feature that you would consider adding in the future?

    Thanks!

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author arosoft

    (@arosoft)

    Hello, it should work with “server mode”. Go to SZBD settings->advanced to enable “server mode”. This also means you need an Google Maps API key without http restrictions.

    Thread Starter Roland

    (@rolandriddell)

    Thanks for the quick reply. I enabled server mode. Here is the response I got when I entered the following address:

    Birger Jarlsgatan 76,
    Stockholm, 11420

    Request:

    Array
    (
        [address] => 11420
        [region] => se
    )

    Response:

    {
       "results" : [
          {
             "address_components" : [
                {
                   "long_name" : "11420",
                   "short_name" : "11420",
                   "types" : [ "postal_code" ]
                },
                {
                   "long_name" : "Jamaica",
                   "short_name" : "Jamaica",
                   "types" : [ "neighborhood", "political" ]
                },
                {
                   "long_name" : "Queens",
                   "short_name" : "Queens",
                   "types" : [ "political", "sublocality", "sublocality_level_1" ]
                },
                {
                   "long_name" : "Queens County",
                   "short_name" : "Queens County",
                   "types" : [ "administrative_area_level_2", "political" ]
                },
                {
                   "long_name" : "New York",
                   "short_name" : "NY",
                   "types" : [ "administrative_area_level_1", "political" ]
                },
                {
                   "long_name" : "United States",
                   "short_name" : "US",
                   "types" : [ "country", "political" ]
                }
             ],
             "formatted_address" : "Jamaica, NY 11420, USA",
             "geometry" : {
                "bounds" : {
                   "northeast" : {
                      "lat" : 40.687123,
                      "lng" : -73.80122010000001
                   },
                   "southwest" : {
                      "lat" : 40.662759,
                      "lng" : -73.8369809
                   }
                },
                "location" : {
                   "lat" : 40.6764003,
                   "lng" : -73.8124984
                },
                "location_type" : "APPROXIMATE",
                "viewport" : {
                   "northeast" : {
                      "lat" : 40.687123,
                      "lng" : -73.80122010000001
                   },
                   "southwest" : {
                      "lat" : 40.662759,
                      "lng" : -73.8369809
                   }
                }
             },
             "place_id" : "ChIJM5_k4z5nwokRtCH9xb1SXMc",
             "types" : [ "postal_code" ]
          }
       ],
       "status" : "OK"
    }

    The message, “There are no shipping options available. Please ensure that your address has been entered correctly, or contact us if you need any help” continues to be displayed.

    • This reply was modified 5 months, 2 weeks ago by Roland.
    Plugin Author arosoft

    (@arosoft)

    Have you added the second API key?

    Thread Starter Roland

    (@rolandriddell)

    Yes, I added a second API key that has the Directions & Geocode APIs activated.

    Plugin Author arosoft

    (@arosoft)

    Ok i would like to take a closer look to see why its not working, can you contact us at arosoft.se

Viewing 5 replies - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.