• Resolved Cody109

    (@cody109)


    Hi,

    I have several questions regarding the Klarna integraton with this plugin:

    1. How can payments be tested via Klarna? I have it in testdrive mode yet any card (real or provided by Stripe test cards) says it’s not valid).
    2. Right now, you first have to check to pay with Klarna, then click the Klarna button. After this, then the Klarna credit card form appears. Is it possible to have this simply show have the option to pay with Klarna is selected?
    3. Is it possible to change the text of the Klarna button (the place order button is replaced with a button that just says Klarna)?
    4. Is it possible to display the option to pay via Klarna directly on a product page?

    This is great plugin! I appreciate any help you can provide!

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author Payment Plugins

    (@mrclayton)

    Hi @cody109,

    Thanks for contacting us. Here are answers to your questions in the order they were asked:

    1. Here is a direct link to the Stripe Klarna testing page. If you scroll toward the bottom of the section you will see an IBAN and credit card you can test with. You must have the plugin set to Test mode in order to test Klarna.

    2. Klarna is a complex payment option that provides different payment methods based on things like the currency and customer’s billing country. Because of this, we wait to render the Klarna payment options once the customer clicks the Klarna button. That ensures the cart has the most up to date billing country, currency, etc. This also cuts down on repeated API calls that slow performance. By waiting until the end, we make a single API call that has all the proper information.

    3. I may not understand your question because the current behavior does this. When a customer selects Klarna, the place order’s text is updated with a translatable string that says Klarna. Are you talking about another button, similar to like what happens when GPay or Apple Pay is selected?

    4. This is not possible at this time because Klarna does not export the customer’s billing (and shipping if it’s a shippable product). The reason payment methods like GPay and Apple Pay can be offered on product pages is because the customer’s billing and shipping info is exported from the wallet and can then be used to fill out the order details.

    Thank you for the kind words, we always appreciate a nice review. Here is a link to our review page if you have a moment. Review page

    Kind Regards,

    Thread Starter Cody109

    (@cody109)

    Thank you for your detailed response! This is very helpful. I have just two more:

    Regarding point 3, what I mean by this is the button just says “Klarna”. I think it would make more sense to say something like “Pay with Klarna” or “Pay via Klarna”. So I was wondering if there was a way to change that button text.

    My other question, is there a way to accept monthly payments via Klarna? Or is the default just to pay after 30 days?

    For example, Klarna can do financing of payments over four months. Is this possible to setup through this plugin?

    Plugin Author Payment Plugins

    (@mrclayton)

    @cody109,

    The order button text is assigned in the constructor of the payment gateway. There are several ways you can change that text programatically. You could hook in to an action that is triggered during the rendering of the checkout page (before the checkout/payment.php template and change the text that way.

    Example:

    function update_klarna_text(){
        WC()->payment_gateways()->payment_gateways()['stripe_klarna']->order_button_text = 
        __('Pay With Klarna', 'your-domain');
    }
    add_action('woocommerce_review_order_before_cart_contents', 'update_klarna_text');

    Or you could load a JS script that changes the order button text.

    (function($){
        $('#payment_method_stripe_klarna').data('order_button_text', 'Pay with Klarna');
    })(jQuery)

    These are just example, please test any code before using.

    Kind Regards,

    Thread Starter Cody109

    (@cody109)

    Thanks for this! Do you know about my other question?

    “My other question, is there a way to accept monthly payments via Klarna? Or is the default just to pay after 30 days?

    For example, Klarna can do financing of payments over four months. Is this possible to setup through this plugin?”

    Plugin Author Payment Plugins

    (@mrclayton)

    @cody109

    To my knowledge Klarna supports pay now, pay in 30 days, or split payments.

    The plug-in supports those three options. I suggest looking through Klarna documentation to see if there are other payment options but stripe supports the three methods that I listed.

    At this time it’s not possible to setup financing over a 4 month period.

    Kind regards,

    Thread Starter Cody109

    (@cody109)

    Okay, thanks for all of the help!!

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Klarna Functionality Questions’ is closed to new replies.