diff --git a/.gitignore b/.gitignore index fdb6ddb9..3f120fe8 100644 --- a/.gitignore +++ b/.gitignore @@ -14,11 +14,6 @@ pids *.seed *.pid.lock -# Java backend files -server/java/build/* -server/java/gradle/* -server/java/out/* - # Directory for instrumented libs generated by jscoverage/JSCover lib-cov diff --git a/README.md b/README.md index 20641e0c..cfe474e6 100644 --- a/README.md +++ b/README.md @@ -63,6 +63,7 @@ The [Sources API](https://stripe.com/docs/sources) provides a single integration Instructions for running the Node.js server in [`server/node`](/server/node) are below. You can find alternative server implementations in the [`server`](/server) directory: +- Java, Spark: [`server/java`](/server/java) - Node, Express: [`server/node`](/server/node) - Python, Flask: [`server/python`](/server/python) - Ruby, Sinatra: [`server/ruby`](/server/ruby) diff --git a/server/java/.gitignore b/server/java/.gitignore new file mode 100644 index 00000000..9c7e3601 --- /dev/null +++ b/server/java/.gitignore @@ -0,0 +1,5 @@ +# Java backend files +build/* +.gradle/* +gradle/* +out/* \ No newline at end of file diff --git a/server/java/README.md b/server/java/README.md index 6205ef4c..9dd94ca6 100644 --- a/server/java/README.md +++ b/server/java/README.md @@ -30,7 +30,7 @@ export STRIPE_PUBLISHABLE_KEY= export STRIPE_SECRET_KEY= export STRIPE_WEBHOOK_SECRET= export STRIPE_ACCOUNT_COUNTRY= -export PAYMENT_METHODS= +export PAYMENT_METHODS="alipay, bancontact, card, eps, ideal, giropay, multibanco, sofort, wechat" export NGROK_SUBDOMAIN= export NGROK_AUTHTOKEN= ``` @@ -80,4 +80,5 @@ ngrok will display a UI in your terminal telling you the new forwarding address Don't forget to append `/webhook` when you set up your Stripe webhook URL in the Dashboard. Example URL to be called: `https://75795038.ngrok.io/webhook`. ## Credits + - Code: [Mike Shaw](https://www.linkedin.com/in/mandshaw/)