I'm building a kind of sandbox integration of Klarna Payments (to get it working in principle and implement the logic later into a real shop). The first step described in the docu, the session creating, has worked. Now I'm trying to get the Klarna widget displayed.
The example in the documentation shows, how to load one payment method (pay_later
/ invoice).
Klarna.Payments.load({
container: '#klarna-payments-container',
payment_method_category: 'pay_later'
}, function (res) {
console.debug(res);
})
I tried the same with pay_now
, but it didn't work (Message "Payment method not available" on the page and {show_form: false}
in the res
object). And actually I want to see a form with three payment methods: pay_now
, pay_later
, and pay_over_time
.
I took a look at the documentation of the load()
. My expectation was to find a parameter like payment_method_categories
. But the method only has payment_method_category
and it needs to be a string...
How to get a defined list of Klarna payment methods available and loaded?
Probably some settings are in the Klarna backend / "control center" (Playground) or an API call for making the methods available are / is needed. If so, what needs to be done and how to do this?