Call any function after the user paid for subscription

I need Call any function after the user paid for subscription.
Can I use this action "membership_subscription_form_after_paid_subscriptions"?
How I can use? I need a example please. Thank you