How to capture when a recurring payment is executed in shopify?

Shopify Partner
1 0 0

Hi friends, I need to know how to detect recurring payments in shopify, so that when a recurring payment happens, perform an action.

In what part of shopify can I detect it, in the code, database?

Thank you for you help.