Wix Plans Direct Purchase on Repeater

@certified-code I added the onReady and still nothing sorry. :frowning:

Here is my code.


import { checkout } from 'wix-pricing-plans';


$w.onReady(function () {

let planId = $w("#dataset1").getCurrentItem();
console.log(planId);

$w('#button1').onClick((event) => {
  checkout.startOnlinePurchase(planId)
      .then((purchase) => {
          const myOrderId = purchase.order._id;
          const myWixPayOrderId = purchase.order.wixPayOrderId;
          const myWixPayStatus = purchase.wixPayStatus;
      });
})
});