Here is the link of question https://www.wix.com/corvid/forum/community-discussion/wix-pay-api-createpayment-function-by-getting-prouducts-from-cart-database