• Resolved mike86

    (@mike86)


    Hello,

    I am trying to get the Klarna Payments working for my customers brand new WooCommerce store.

    Klarna Payments production API credentials are working and I am able to pay for order but the payment process is stuck at https://www.sofort.com/payment/multipay/go/transaction_summary page and not redirecting back to the shop “Thank you” page.

    That is why the WooCommerce is showing that payments hasn’t been made and customer is unable to download the products he paid for.

    Do you know how to fix this problem? Thanks in advance!

    `
    ### WordPress Environment ###
    
    WC Version: 7.9.0
    REST API Version: ? 7.9.0
    WC Blocks Version: ? 10.4.6
    Action Scheduler Version: ? 3.6.1
    Log Directory Writable: ?
    WP Version: 6.2.2
    WP Multisite: –
    WP Memory Limit: 512 Mt
    WP Debug Mode: –
    WP Cron: ?
    Language: fi
    External object cache: –
    
    ### Server Environment ###
    
    Server Info: Apache/2
    PHP Version: 8.2.1
    PHP Post Max Size: 128 Mt
    PHP Time Limit: 30
    PHP Max Input Vars: 1000
    cURL Version: 7.74.0
    OpenSSL/1.1.1n
    
    SUHOSIN Installed: –
    MySQL Version: 10.6.12-MariaDB
    Max Upload Size: 128 Mt
    Default Timezone is UTC: ?
    fsockopen/cURL: ?
    SoapClient: ?
    DOMDocument: ?
    GZip: ?
    Multibyte String: ?
    Remote Post: ?
    Remote Get: ?
    
    ### Database ###
    
    WC Database Version: 7.9.0
    WC Database Prefix: wp_
    Tietokannan kokonaiskoko: 28.03MB
    Tietokannan tietojen koko: 17.92MB
    Tietokannan hakemiston koko: 10.11MB
    wp_woocommerce_sessions: Tiedot: 0.02MB + Indeksi: 0.02MB + Moottori InnoDB
    wp_woocommerce_api_keys: Tiedot: 0.02MB + Indeksi: 0.03MB + Moottori InnoDB
    wp_woocommerce_attribute_taxonomies: Tiedot: 0.02MB + Indeksi: 0.02MB + Moottori InnoDB
    wp_woocommerce_downloadable_product_permissions: Tiedot: 0.02MB + Indeksi: 0.06MB + Moottori InnoDB
    wp_woocommerce_order_items: Tiedot: 0.02MB + Indeksi: 0.02MB + Moottori InnoDB
    wp_woocommerce_order_itemmeta: Tiedot: 0.02MB + Indeksi: 0.03MB + Moottori InnoDB
    wp_woocommerce_tax_rates: Tiedot: 0.02MB + Indeksi: 0.06MB + Moottori InnoDB
    wp_woocommerce_tax_rate_locations: Tiedot: 0.02MB + Indeksi: 0.03MB + Moottori InnoDB
    wp_woocommerce_shipping_zones: Tiedot: 0.02MB + Indeksi: 0.00MB + Moottori InnoDB
    wp_woocommerce_shipping_zone_locations: Tiedot: 0.02MB + Indeksi: 0.03MB + Moottori InnoDB
    wp_woocommerce_shipping_zone_methods: Tiedot: 0.02MB + Indeksi: 0.00MB + Moottori InnoDB
    wp_woocommerce_payment_tokens: Tiedot: 0.02MB + Indeksi: 0.02MB + Moottori InnoDB
    wp_woocommerce_payment_tokenmeta: Tiedot: 0.02MB + Indeksi: 0.03MB + Moottori InnoDB
    wp_woocommerce_log: Tiedot: 0.02MB + Indeksi: 0.02MB + Moottori InnoDB
    wp_actionscheduler_actions: Tiedot: 5.02MB + Indeksi: 4.23MB + Moottori InnoDB
    wp_actionscheduler_claims: Tiedot: 0.02MB + Indeksi: 0.02MB + Moottori InnoDB
    wp_actionscheduler_groups: Tiedot: 0.02MB + Indeksi: 0.02MB + Moottori InnoDB
    wp_actionscheduler_logs: Tiedot: 3.52MB + Indeksi: 3.03MB + Moottori InnoDB
    wp_ce4wp_abandoned_checkout: Tiedot: 0.02MB + Indeksi: 0.02MB + Moottori InnoDB
    wp_ce4wp_contacts: Tiedot: 0.02MB + Indeksi: 0.02MB + Moottori InnoDB
    wp_cmplz_cookiebanners: Tiedot: 0.02MB + Indeksi: 0.00MB + Moottori InnoDB
    wp_cmplz_cookies: Tiedot: 0.02MB + Indeksi: 0.00MB + Moottori InnoDB
    wp_cmplz_services: Tiedot: 0.02MB + Indeksi: 0.00MB + Moottori InnoDB
    wp_commentmeta: Tiedot: 0.02MB + Indeksi: 0.03MB + Moottori InnoDB
    wp_comments: Tiedot: 0.02MB + Indeksi: 0.09MB + Moottori InnoDB
    wp_easywpsmtp_debug_events: Tiedot: 0.02MB + Indeksi: 0.00MB + Moottori InnoDB
    wp_easywpsmtp_tasks_meta: Tiedot: 0.02MB + Indeksi: 0.00MB + Moottori InnoDB
    wp_gla_attribute_mapping_rules: Tiedot: 0.02MB + Indeksi: 0.00MB + Moottori InnoDB
    wp_gla_budget_recommendations: Tiedot: 0.20MB + Indeksi: 0.11MB + Moottori InnoDB
    wp_gla_merchant_issues: Tiedot: 0.02MB + Indeksi: 0.00MB + Moottori InnoDB
    wp_gla_shipping_rates: Tiedot: 0.02MB + Indeksi: 0.03MB + Moottori InnoDB
    wp_gla_shipping_times: Tiedot: 0.02MB + Indeksi: 0.02MB + Moottori InnoDB
    wp_links: Tiedot: 0.02MB + Indeksi: 0.02MB + Moottori InnoDB
    wp_mailpoet_automations: Tiedot: 0.02MB + Indeksi: 0.00MB + Moottori InnoDB
    wp_mailpoet_automation_runs: Tiedot: 0.02MB + Indeksi: 0.02MB + Moottori InnoDB
    wp_mailpoet_automation_run_logs: Tiedot: 0.02MB + Indeksi: 0.02MB + Moottori InnoDB
    wp_mailpoet_automation_run_subjects: Tiedot: 0.02MB + Indeksi: 0.03MB + Moottori InnoDB
    wp_mailpoet_automation_triggers: Tiedot: 0.02MB + Indeksi: 0.00MB + Moottori InnoDB
    wp_mailpoet_automation_versions: Tiedot: 0.02MB + Indeksi: 0.02MB + Moottori InnoDB
    wp_mailpoet_custom_fields: Tiedot: 0.02MB + Indeksi: 0.02MB + Moottori InnoDB
    wp_mailpoet_dynamic_segment_filters: Tiedot: 0.02MB + Indeksi: 0.02MB + Moottori InnoDB
    wp_mailpoet_feature_flags: Tiedot: 0.02MB + Indeksi: 0.02MB + Moottori InnoDB
    wp_mailpoet_forms: Tiedot: 0.02MB + Indeksi: 0.00MB + Moottori InnoDB
    wp_mailpoet_log: Tiedot: 0.02MB + Indeksi: 0.00MB + Moottori InnoDB
    wp_mailpoet_migrations: Tiedot: 0.02MB + Indeksi: 0.02MB + Moottori InnoDB
    wp_mailpoet_newsletters: Tiedot: 0.02MB + Indeksi: 0.03MB + Moottori InnoDB
    wp_mailpoet_newsletter_links: Tiedot: 0.02MB + Indeksi: 0.05MB + Moottori InnoDB
    wp_mailpoet_newsletter_option: Tiedot: 0.02MB + Indeksi: 0.02MB + Moottori InnoDB
    wp_mailpoet_newsletter_option_fields: Tiedot: 0.02MB + Indeksi: 0.02MB + Moottori InnoDB
    wp_mailpoet_newsletter_posts: Tiedot: 0.02MB + Indeksi: 0.02MB + Moottori InnoDB
    wp_mailpoet_newsletter_segment: Tiedot: 0.02MB + Indeksi: 0.02MB + Moottori InnoDB
    wp_mailpoet_newsletter_templates: Tiedot: 2.52MB + Indeksi: 0.00MB + Moottori InnoDB
    wp_mailpoet_scheduled_tasks: Tiedot: 0.02MB + Indeksi: 0.03MB + Moottori InnoDB
    wp_mailpoet_scheduled_task_subscribers: Tiedot: 0.02MB + Indeksi: 0.02MB + Moottori InnoDB
    wp_mailpoet_segments: Tiedot: 0.02MB + Indeksi: 0.03MB + Moottori InnoDB
    wp_mailpoet_sending_queues: Tiedot: 0.02MB + Indeksi: 0.03MB + Moottori InnoDB
    wp_mailpoet_settings: Tiedot: 0.02MB + Indeksi: 0.02MB + Moottori InnoDB
    wp_mailpoet_statistics_bounces: Tiedot: 0.02MB + Indeksi: 0.00MB + Moottori InnoDB
    wp_mailpoet_statistics_clicks: Tiedot: 0.02MB + Indeksi: 0.05MB + Moottori InnoDB
    wp_mailpoet_statistics_forms: Tiedot: 0.02MB + Indeksi: 0.02MB + Moottori InnoDB
    wp_mailpoet_statistics_newsletters: Tiedot: 0.02MB + Indeksi: 0.03MB + Moottori InnoDB
    wp_mailpoet_statistics_opens: Tiedot: 0.02MB + Indeksi: 0.08MB + Moottori InnoDB
    wp_mailpoet_statistics_unsubscribes: Tiedot: 0.02MB + Indeksi: 0.05MB + Moottori InnoDB
    wp_mailpoet_statistics_woocommerce_purchases: Tiedot: 0.02MB + Indeksi: 0.06MB + Moottori InnoDB
    wp_mailpoet_stats_notifications: Tiedot: 0.02MB + Indeksi: 0.03MB + Moottori InnoDB
    wp_mailpoet_subscribers: Tiedot: 0.02MB + Indeksi: 0.23MB + Moottori InnoDB
    wp_mailpoet_subscriber_custom_field: Tiedot: 0.02MB + Indeksi: 0.02MB + Moottori InnoDB
    wp_mailpoet_subscriber_ips: Tiedot: 0.02MB + Indeksi: 0.02MB + Moottori InnoDB
    wp_mailpoet_subscriber_segment: Tiedot: 0.02MB + Indeksi: 0.03MB + Moottori InnoDB
    wp_mailpoet_subscriber_tag: Tiedot: 0.02MB + Indeksi: 0.03MB + Moottori InnoDB
    wp_mailpoet_tags: Tiedot: 0.02MB + Indeksi: 0.02MB + Moottori InnoDB
    wp_mailpoet_user_agents: Tiedot: 0.02MB + Indeksi: 0.02MB + Moottori InnoDB
    wp_mailpoet_user_flags: Tiedot: 0.02MB + Indeksi: 0.02MB + Moottori InnoDB
    wp_options: Tiedot: 3.16MB + Indeksi: 0.08MB + Moottori InnoDB
    wp_postmeta: Tiedot: 1.23MB + Indeksi: 0.13MB + Moottori InnoDB
    wp_posts: Tiedot: 0.28MB + Indeksi: 0.06MB + Moottori InnoDB
    wp_snippets: Tiedot: 0.02MB + Indeksi: 0.03MB + Moottori InnoDB
    wp_termmeta: Tiedot: 0.02MB + Indeksi: 0.03MB + Moottori InnoDB
    wp_terms: Tiedot: 0.02MB + Indeksi: 0.03MB + Moottori InnoDB
    wp_term_relationships: Tiedot: 0.02MB + Indeksi: 0.02MB + Moottori InnoDB
    wp_term_taxonomy: Tiedot: 0.02MB + Indeksi: 0.03MB + Moottori InnoDB
    wp_usermeta: Tiedot: 0.09MB + Indeksi: 0.03MB + Moottori InnoDB
    wp_users: Tiedot: 0.02MB + Indeksi: 0.05MB + Moottori InnoDB
    wp_wc_admin_notes: Tiedot: 0.06MB + Indeksi: 0.00MB + Moottori InnoDB
    wp_wc_admin_note_actions: Tiedot: 0.06MB + Indeksi: 0.02MB + Moottori InnoDB
    wp_wc_category_lookup: Tiedot: 0.02MB + Indeksi: 0.00MB + Moottori InnoDB
    wp_wc_customer_lookup: Tiedot: 0.02MB + Indeksi: 0.03MB + Moottori InnoDB
    wp_wc_download_log: Tiedot: 0.02MB + Indeksi: 0.03MB + Moottori InnoDB
    wp_wc_order_coupon_lookup: Tiedot: 0.02MB + Indeksi: 0.03MB + Moottori InnoDB
    wp_wc_order_product_lookup: Tiedot: 0.02MB + Indeksi: 0.06MB + Moottori InnoDB
    wp_wc_order_stats: Tiedot: 0.02MB + Indeksi: 0.05MB + Moottori InnoDB
    wp_wc_order_tax_lookup: Tiedot: 0.02MB + Indeksi: 0.03MB + Moottori InnoDB
    wp_wc_product_attributes_lookup: Tiedot: 0.02MB + Indeksi: 0.02MB + Moottori InnoDB
    wp_wc_product_download_directories: Tiedot: 0.02MB + Indeksi: 0.02MB + Moottori InnoDB
    wp_wc_product_meta_lookup: Tiedot: 0.02MB + Indeksi: 0.09MB + Moottori InnoDB
    wp_wc_rate_limits: Tiedot: 0.02MB + Indeksi: 0.02MB + Moottori InnoDB
    wp_wc_reserved_stock: Tiedot: 0.02MB + Indeksi: 0.00MB + Moottori InnoDB
    wp_wc_tax_rate_classes: Tiedot: 0.02MB + Indeksi: 0.02MB + Moottori InnoDB
    wp_wc_webhooks: Tiedot: 0.02MB + Indeksi: 0.02MB + Moottori InnoDB
    
    ### Post Type Counts ###
    
    attachment: 47
    custom_css: 1
    customize_changeset: 1
    et_pb_layout: 8
    et_template: 2
    et_theme_builder: 1
    mailpoet_page: 1
    nav_menu_item: 2
    page: 14
    post: 1
    product: 11
    revision: 28
    shop_coupon: 1
    shop_order: 8
    wp_global_styles: 2
    wp_navigation: 1
    wp_template_part: 2
    
    ### Security ###
    
    Secure connection (HTTPS): ?
    Hide errors from visitors: ?
    
    ### Active Plugins (6) ###
    
    Complianz | GDPR/CCPA Cookie Consent: -- Todella yksinkertaiset lis?osat – 6.5.2
    Easy WP SMTP: -- Easy WP SMTP – 2.1.2
    Klarna Payments for WooCommerce: -- krokedil
    klarna
    automattic – 3.1.1
    
    Loco Translate: -- Tim Whitlock – 2.6.4
    Checkout Field Editor for WooCommerce: -- ThemeHigh – 1.9.0
    WooCommerce: -- Automattic – 7.9.0
    
    ### Inactive Plugins (2) ###
    
    Jetpack: -- Automattic – 12.3
    Klarna Order Management for WooCommerce: -- klarna
    krokedil – 1.8.1
    
    
    ### Must Use Plugins (1) ###
    
    WordPress automation by Installatron: --  –
    
    ### Settings ###
    
    API Enabled: –
    Force SSL: –
    Currency: EUR (€)
    Currency Position: right_space
    Thousand Separator: 
    Decimal Separator: .
    Number of Decimals: 2
    Taxonomies: Product Types: external (external)
    grouped (grouped)
    simple (simple)
    variable (variable)
    
    Taxonomies: Product Visibility: exclude-from-catalog (exclude-from-catalog)
    exclude-from-search (exclude-from-search)
    featured (featured)
    outofstock (outofstock)
    rated-1 (rated-1)
    rated-2 (rated-2)
    rated-3 (rated-3)
    rated-4 (rated-4)
    rated-5 (rated-5)
    
    Connected to WooCommerce.com: –
    Enforce Approved Product Download Directories: ?
    HPOS feature screen enabled: –
    HPOS feature enabled: –
    Order datastore: WC_Order_Data_Store_CPT
    HPOS data sync enabled: –
    
    ### WC Pages ###
    
    Kaupan polkutunnus: #272 - /tuotteet/
    Ostoskori: #273 - /ostoskori/
    Kassa: #274 - /kassa/
    Oma tili: #275 - /oma-tili/
    Tilaus- ja sopimusehdot: #428 - /maksu-ja-toimitusehdot/
    
    ### Theme ###
    
    Name: Divi
    Version: 4.21.1
    Author URL: https://www.elegantthemes.com
    Child Theme: ? – Suositus: jos muokkaat WooCommercen is?nt?teemaa jota et itse ole tehnyt
    suosittelemme k?ytt?m??n lapsiteemaa. Katso: Kuinka luodaan lapsiteema
    
    WooCommerce Support: ?
    
    ### Templates ###
    
    Overrides: –
    
    ### Klarna Payments Request Log ###
    
    No Klarna Payment errors: 
    
    ### Klarna Countries ###
    
    Production Countries: FI
    Test Countries: No countries selected
    
    ### Admin ###
    
    Enabled Features: activity-panels
    analytics
    product-block-editor
    coupons
    core-profiler
    customer-effort-score-tracks
    import-products-task
    experimental-fashion-sample-products
    shipping-smart-defaults
    shipping-setting-tour
    homescreen
    marketing
    mobile-app-banner
    navigation
    onboarding
    onboarding-tasks
    remote-inbox-notifications
    remote-free-extensions
    payment-gateway-suggestions
    shipping-label-banner
    subscriptions
    store-alerts
    transient-notices
    woo-mobile-welcome
    wc-pay-promotion
    wc-pay-welcome-page
    
    Disabled Features: minified-js
    new-product-management-experience
    product-variation-management
    settings
    async-product-editor-category-field
    
    Daily Cron: ? Next scheduled: 2023-07-21 10:29:46 +03:00
    Options: ?
    Notes: 77
    Onboarding: completed
    
    ### Action Scheduler ###
    
    Valmis: 6?190
    Oldest: 2023-06-19 13:59:13 +0300
    Newest: 2023-07-20 13:37:05 +0300
    
    Ep?onnistunut: 4?903
    Oldest: 2023-05-29 17:03:58 +0300
    Newest: 2023-07-20 13:54:27 +0300
    
    Odottaa: 5
    Oldest: 2023-07-20 13:56:27 +0300
    Newest: 2023-07-24 14:05:16 +0300
    
    
    ### Status report information ###
    
    Generated at: 2023-07-20 13:54:58 +03:00
    `
Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author Kristi at Klarna

    (@klarna)

    Hi @mike86 ,

    Could you review to make sure JavaScript required for Klarna Payments for WooCommerce is not optimized, per: https://docs.krokedil.com/klarna-payments-for-woocommerce/get-started/introduction/#optimizing-your-checkout

    as I can confirm from Klarna logs that the authorization callback is called from Klarna, but the Woo redirect requires JavaScript to complete successfully.

    Thread Starter mike86

    (@mike86)

    Hi,

    The JavaScript is not optimized. Earlier the Jetpack plugin was enabled but not anymore as you can see from the WooCommerce System Status Report I sent in the first message.

    What else can I try to fix this situation?

    Plugin Author Kristi at Klarna

    (@klarna)

    Hi again @mike86 ,

    I’d suggest opening a support case at [email protected] to share more details, as the system report isn’t likely enough to debug this, and something still seems to be preventing the JavaScript from working fully.

    Plugin Author Kristi at Klarna

    (@klarna)

    Hi @mike86 ,

    I see in our Klarna data that this store has take live orders now (e.g. correlation_id:?cc695e94-0dee-46c5-87a8-723f4206416f / ?timestamp:?2023-07-28T05:58:57.134Z?????). Hopefully all is working well, and if so, should this topic be closed? Please do share any lessons learned that might help with this topic. Thanks!

    Thread Starter mike86

    (@mike86)

    Hello,

    I have made few test orders, but the redirect back to the shop is still not working after payment. That should still be resolved but what could I try next?

    This is the last message from Krokedil Support:

    “From what I can read, everything went through successfully. The customer should have been redirected:

    https://js.klarna.com/eu/kp/v1/sessions/94bf4c7a-7ef1-2988-a2f8-41913fece75d/redirect

    The payment method was direct bank transfer, and the purchase was accepted. Furthermore, I cannot find any errors happening during the place order process. Since the redirection is controlled by Klarna, I suggest you get in touch with their merchant support. Please provide them with the session ID: 94bf4c7a-7ef1-2988-a2f8-41913fece75d to help them identify your order.”

    Plugin Author Kristi at Klarna

    (@klarna)

    thank you @mike86 ; I see that there is a support case with Klarna merchant support (klarna.com/merchant-support) so hopefully that will help resolve this issue.

    Thread Starter mike86

    (@mike86)

    Customer got tired of waiting so he wanted to change Klarna to another payment provider.

    The payment and redirection back to the shop was successful right away after changing the payment provider. No changes to the settings were made.

    Still thanks for trying to fix the problem. If you manage to solve the issue, I would like to know so this won’t happen again in the future to someone else. Thanks!

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Klarna Payments not redirecting back to shop after payment’ is closed to new replies.