Plan start date

Hello!
Im trying to show on a page info about paid plan (name, start and expiry date), but it showing only name. Is there mistake:

import wixUsers from ‘wix-users’;
let user = wixUsers.currentUser;
user.getPricingPlans()
.then( (pricingPlans) => {
let firstPlan = pricingPlans[0];
let planName = firstPlan.name;
let startDate = firstPlan.startDate;
let expiryDate = firstPlan.expiryDate;

$w(‘#input1’).value = planName;
$w(‘#input2’).value = startDate;
$w(‘#input3’).value = expiryDate;
});

The APIs in wix-users are only partially functional when previewing your site. View a published version of your site to see their complete functionality.

The APIs in wix-users can only be used once the page has loaded. Therefore, you must use them in code that is contained in or is called from the onReady() event handler or any element event handler.

I use onReady() and published version of site, but dates are still not showing.