Expose an HTTP API for turning a Stripe payment token into a Stripe charge
Stripe.js works by sending payment details to a Stripe server and getting back a token, then sending the token to the application backend. The application backend is required to send the token to a Stripe server along with parameters to create a charge against the payment details represented by the token. Then the application backend can return success or failure to the web page which can show it to the user.
Implement the part of the application backend that takes a token, sends it to stripe to create a charge, and returns a success/failure result to the web page.