How to know using PHP API whether a recurring registered member have made the payment in next payment cyle or not?

How to know if a recurring registered member have made the payment in next payment cyle using php API.
Please share the documentation link for php api script using which we can get the recurring  payment made by the customer in next recurring cycle..