Apple storekit question

So i foung this plugin https://github.com/AlexDisler/ng-storekit
And my question is how does exacly it works?

Story:
App is free
User goes into appstore buys the subscription
<Do i get any info back to app?>
Update user account.