You'll need Pedagogic Credits Enrol plugin.
See this handler structure documentation - Configuration and implementation of a commercial offer - Local Shop component - back to catalogue