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,
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?
@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,
-
This reply was modified 6 years, 1 month ago by
Clayton R.
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?”
@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,
Okay, thanks for all of the help!!