I am trying to make a Django REST view which creates a PaymentIntent object for Stripe and send the client the client-secret. This is the code for this handler in javascript