Access to Payments Table on dashboard via code?

Thanks @ahmadnasriya . Now I have a question about the events that I will receive in my wixPay_onPaymentUpdate event handler. The docs say:

  1. When the customer places an order and it is approved, the payment appears on the payments dashboard in Status as: Pending Credit . Once the customers’s card issuer pays the funds to Wix the status of the payment changes to Successful .

When I test it with a purchase on my credit card, I only receive one event that is Successful. If there is delay between the transaction pending and being successful (I assume this depends on the credit card provider), will I receive two events? I’m not sure how to test this. In the end, I want to be able to look up the transaction ID in my own Payments collection (which I populate in the event handler) and see if that transaction is in the Successful state.