Wix pay API issue while sending an array for item in createPayment()

Your page code… Do you have the imports at the top as you have them listed on your backend already?

import {createMyPayment} from 'backend/pay';
import wixPay from 'wix-pay';

$w.onReady(function () {

//rest of code...//