Demonstrates usage of Java Play Framework with a simplified product checkout page. Submits a payment to Stripe and retrieves a payment token
- Logic for Stripe payments is located in Stripe provided .js file, located in this repo at /public/javascripts/stripe.js
- Here a Stripe token is provided to a Stripe client and then executes call to Stripe API
- You must have a local instance of MySQL running with a database named "products"
- A user with username "root" and password "root", or change the db config in application.conf
- Enable legacy authentication on your MySQL server instance
- From one directiory above this folder apply evolutions: "play evolutions:apply java-play-products"
- Note that you must first run these database scripts before the application will work*
- Run server: "java run java-play-products"
- Browse to localhost:9000
- Make sure you have Java 1.8 installed
- Make sure you have mysql-connector.jar in your Java Runtime Environment
- Your mysql server should be version 8.0 or above