Access to Payments Table on dashboard via code?

If you want to represent the payment to your clients/customers, you should use your own IDs, the payment ID is for your reference in case of refunds, chargebacks, etc, and the order ID is for your reference in the website, as you pass it to Wix Pay, other than that, your customers should see your own transaction ID.