The Litium 7 Klarna plug-in sets the merchant_reference2
(“Butiksreferens #2”) to the Delivery id/guid. Is there a way to provide our own value instead?
We don’t have the desired value at checkout when the payment is created, but we would like the value to be set in Klarna before the payment is activated. The Klarna plug-in activates the payment when the order/delivery is set to Delivered.
We can probably do this by manually updating the Klarna order (using the Klarna API), but this would be a completely separate Klarna API integration next to the one the plug-in already has. So something in the plug-in would be preferable.
So the flow would be:
- Create Klarna order/payment (handled by plug-in already)
- Create Litium Order (handled by plug-in already)
- Set Litium order/delivery to Delivered (we do this already using Integration Kit)
- Something to update Klarna
merchant_reference2
(set something on the Litium Payment?) - Activate/charge Klarna payment (handled by plug-in already)
Litium version: 7 & 8 + accelerator