wixStoresBackend.getCurrentCart() - "Read a cart is not permitted with info..."

I’m trying to get a wix cart in the backend in the onPaymentUpdate block like so


export async function wixPay_onPaymentUpdate(event) {
   
    if(event.status == 'Successful') {
        const wixCart = await wixStoresBackend.getCurrentCart();
        console.log('checking wixCart',wixCart);
    }    
        
}

When i check the dashboard logs i get an error like this “”[“Read a cart is not permitted with info: Some(IdentificationInformation(960dc41f-a269-4be4-a79b-b181aa31e8b3,e78daadd-bc83-477f-837f-96cefa218edc,1380b703-ce81-ff05-f115-39571d94dfcd,None,None,None,None,Some(151e476a-715e-ec33-db9a-a7ff4d51f70a)))”]"

After trying the wixStoresBackend.getCurrentCart() in other events within events.js it seems like wixStoresBackend.getCurrentCart() is not allowed to be called from event.js…

Can anyone confirm this? Didn’t find any info about this