Skip to content

gourban/CareerBackendJavaDeveloper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 

Repository files navigation

Backend Java Developer Coding Challenge

This is the coding challenge for applying for Backend Java Developer at goUrban.

Goal

The goal of this challenge is to write a small client for the Stripe-Platform.

Use sk_test_4eC39HqLyjWDarjtT1zdp7dc as Stripe API Key.

Publish your results as a public GitHub/GitLab repo or send it to us as a zip-file.

Task

Write a small console client for Stripe for the following scenario:

  1. Ask user for email.
  2. User enters email.
  3. Create customer at stripe with the entered email address.
  4. Create a credit card source in stripe with token tok_at and type card and attach it as default source to the created customer.
  5. Ask user for the amount of the charge in Euro.
  6. Create a charge for the requested amount.
  7. Ask the user if he wants to chapture the charge or refund it.
  8. Charge or refund the charge.

If an exception/error occurs the charge should be refunded. Implement exception handling when calling Stripe resources as you would do in a production environment. Reads/Writes from/to console can be considered to work as they should but user input should be validated.

Resources

Prerequisites

  • Use Java 8 as the programming language.
  • Use the packaging/build tool of your choice.
  • Write the task either as a junit test or as a console programm (ie. public static void main)
  • Use the Spring Boot framework whenever usefull.
  • Use sk_test_4eC39HqLyjWDarjtT1zdp7dc as Stripe API Key.

Constraints

  • Should be runable on Windows/Linux/OS X platforms whenever the appropriate build tools are installed.

About

Coding Challenge for Backend Java Developer

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published