Stripe customer on users-permission

System Information
  • Strapi Version: 3.6
  • Operating System: Windows
  • Database: Mongo DB
  • Node Version: v14.15.4
  • NPM Version:
  • Yarn Version:

Im building an online store, and when people register i is when they are buying something… and im trying to use stripe but i dont know where to put the backend code,

const stripe = require('stripe')('sk_test_pmhEotNsEpfpLh9XevwVd0T5004rqsKits');

const customer = await stripe.customers.create();
````Preformatted text`
---


it should be upon registration but i dont know where to put the controller of the users