UCI in sandbox mode
-
Hi,
I am trying to test the payment plugin and messaging addon and unfortunately a lot of things are missing from the sandbox control panel.
How can I get the UCI for testing the Klarna On-Site Messaging or view the various payment options (slice etc?)
My test merchant/store id is PN01281 and I need the US options to become visible along with the UCI etc. but I dont have a contract so no sales rep available. I am trying to showcase the service to my clients, so it would be great if somehow this worked.
Thank you!
-
Hi @k3nsai –
Klarna On-Site Messaging is developing support for playground/sandbox support, but that unfortunately isn’t currently available yet. One option to demo Klarna On-Site Messaging is the Klarna demo store at: https://www.klarna.com/demo/Regarding support without a sales rep, if you haven’t already, you could fill out this form: https://www.klarna.com/international/business/become-a-partner-form/
or also US Merchant Support: https://www.klarna.com/us/business/merchant-support-mail-form/
to request test UCI’s if the demo store does not suffice.I have also updated your test merchant id (PN01281) a few hours ago to add some additional product offerings, so hopefully when you next test, you’ll get more Klarna options. If that still doesn’t offer the options you are looking for, please let us know.
Hi,
Thank you for your feedback. Unfortunately I dont see any other payment options in my test shop, besides pay later (30 days) and pay with cc.
I would like to be able to show on the woocommerce test site that I am developing the “Pay as low as $xxx/mo. with Klarna.” banners in the product pages, but I am unable to do so with the current setup. I am guessing I need the split payment option for that?
If I understand correctly, I need the messaging option enabled (UCI etc) for the banners? Is there a way for me to show these banners/functionality on my woo test site currently?
Thank you
- This reply was modified 5 years, 2 months ago by k3nsai.
Hi again,
Looks like the updates are still propagating to all required systems, so please retest after a few more hours. Once the changes are ready, you should see 2 Klarna Payments options within checkout: Pay later in 30 days & Buy now, pay later.Regarding Klarna On-Site Messaging for Woo, we have a Woo plugin available to easily enable merchants to display these banners and dynamic messaging on their Woo store, see: https://github.com/krokedil/klarna-onsite-messaging-for-woocommerce & https://developers.klarna.com/resources/on-site-messaging/getting-started/
As I mentioned On-Site Messaging isn’t yet supported for all playground merchant ids yet, but that is in progress. If you sign up to be a Klarna partner or request support via merchant support, we can work with you further on this.
Hello,
Thank you for your quick feedback.
I have already a section called Klarna On-Site Messaging at the bottom of the Klarna Payments plugin in woo. I installed that from within the addons section of the Klarna Payments plugin. Is that and the new plugin you mention the same or are they different ones?
I am in the process of registering for a merchant account, the sales team from your side is hopefully “making us an offer we cant refuse” sooner rather than later.
As I am a dev though, It would be great though to have that functionality enabled and working on the dev site before the whole back end worth ends with the sales departments etc.
Hi @k3nsai –
Yes, the Klarna On-Site Messaging from Add-Ons is the same plugin as the one I referenced.Great to hear that you are already working with Klarna sales. After your contract is finalized, the implementations team will support you with on-site messaging and any other questions or issues.
Agreed that it would be great to have all functionality available in playground; we’re working on it!
Hello again,
I do see now the option for the pay later in checkout, looks and works great, thank you for taking the time to add it to my account.
I have messaged your support and they mentioned that the implementation team will send me some test UCIs, hopefully that happens!
Do I need the UCI for the banners to show up though? Is there a way to see them on the site while I am waiting for the UCIs?
.BR
Hi @k3nsai.
Great to see that you got KP working for you now. Regarding if you need a UCI or not, sadly this is something that is needed before you can see anything from the On-Site messaging.
To add to previous messages @k3nsai,
As the on-site messaging served can be dynamic and specific to a merchant’s configuration, the UCI (universal client id) is necessary to provide the appropriate merchant content, and is thus required for on-site messaging. Static content is also available via on-site messaging. Static assets are also available (without a UCI) at: https://guidelines.klarna.com/co-marketingAnd for US resources, see: https://guidelines.klarna.com/co-marketing-us
Hello,
I have activated my production account with klarna, still waiting for the dev UCIs from the implementation team.In the meanwhile, I did a quick test of the on-site messaging plugin on my production site and I noticed a bug with an On-Site Messaging script.
If I enable the plugin, then my variation selection for my products does not work anymore and I get an error in console. Also, the messaging banners are nowhere to be seen no matter what position I select for them.
Here is the error:
TypeError: document.getElementsByTagName(…)[0] is undefined
And here is js script that throws the error:
;jQuery(function($) { var klarna_onsite_messaging = { update_iframe: function() { window.kudt = window.kudt || []; window.kudt.push({ eventName: 'refresh-placements' }); $('klarna-placement').show(); }, check_variable: function() { if ($('.product-type-variable')[0] && $('.variation_id').val() === '0') { return false; } return true; }, update_total: function(variation) { document.getElementsByTagName("klarna-placement")[0].setAttribute("data-total_amount", variation.display_price); klarna_onsite_messaging.update_iframe(); } } $(document.body).on("updated_cart_totals", function() { klarna_onsite_messaging.update_iframe(); }); $(document).ready(function() { if (false === klarna_onsite_messaging.check_variable) { $('klarna-placement').hide(); } else { $('klarna-placement').show(); } }); $(document).on('found_variation', function(e, variation) { klarna_onsite_messaging.update_total(variation); }); });
1) What can cause this issue? I have a custom theme, could the position placement in it cause the errors?
2) Is it possible to force/change the position of the banner via a woocommerce hook and have it show up in other places instead of the hard-coded placements that you have in your plugin?Hi again,
Could you send the URL to your site so i can see the error in the console myself? If you want you can send a support ticket directly to [email protected] and we can help you more directly.
I have send you an email to support, lets continue from there.
Thank youI am closing this topic since this has been resolved over support mail. The issue was with the action being used to put the placement element on the page, causing a JS error stopping JS functionality on the page. We will put inplace checks to make sure this fails gracefully instead of like this.
Hi Michael,
After the latest update the JS errors have returned and the same issue happens again with variation selectors.
Has anything changed with the update?
- The topic ‘UCI in sandbox mode’ is closed to new replies.