Paid market API


I'm trying to integrate the MP API, so far very well, but I can't find the code for, for example, when the person paying by ticket, I constantly check if the payment has dropped.