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;
});