Endpoint elaborates on how you can check the Order Status of the payment.
This API is used to check the payment status: This endpoint retrieves the current payment status of a session. Use this to verify if a payment was successful, failed, or is still pending.