Subscription with Craft Commerce
Commerce 2, currently in beta, does support subscriptions, but right now it's only when using the Commerce Stripe payment gateway plugin.

If you're using a different payment gateway that supports subscriptions, you'll have to write a custom Craft/Commerce plugin and you can use the Commerce Stripe one as a starting point.

The relevant Commerce subscription documentation lives here: 
 https://docs.craftcms.com/commerce/v2/subscriptions.html