Passing a variable to a backend page

@burkedunnweb
Try this one…

//Front-End-Codeimport{createMyPayment}from'backend/nameOfBackEndModul.JSWhere'  $w.onReady(()=>{
    letVARIABLE="CollectionNameHere"createMyPayment(productId, VARIABLE)
})