Skip to content

nileshs23/PortOneAssignment

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 

Repository files navigation

#Stripe | Financial Infrastructure to Grow Your Revenue !
Explore the docs »

Table of Contents
  1. About The Project
  2. Getting Started
  3. Modules
  4. API
  5. Roadmap
  6. Contributors
  7. References

About The Project

This is Java Bases Spring-Boot API gateway. Here I have used Payment and Customer models from Stripe. Only for testing purposes. Easily Create Customer and make payment gateway to make payments. No need to import third party libraries or code. Stripe API provides you all. Here I have used secured payments from Stripe to DEMO the actual working of API.

(back to top)

Built With

Tech Stack :

My Skills

(back to top)

Getting Started

To get a local copy up and running follow these simple example steps.

Prerequisites

This is an example of how to list things you need to use the software and how to install them.

  • Spring Tool Suite 4
  https://spring.io/tools
  • Maven Dependencies
  https://mvnrepository.com/
  • StripeAPI
 https://stripe.com/in

(back to top)

Modules

This Application Consist 2 Modules

1. Customer Module

  • Based Upon Stripe API Docs.
  • It performs Registration Of Customer
  • Search a customer, Get a list of customers , etc.

2.Payment Module

  • This Module Will Make A Payment Object and store it Using Stripe API.
  • Confirm and Capture payments using various payment methods such as Debit or Credit card, Google Pay, Amazon Pay ,etc.
  • If not satisfied you can always reverse the process that is REFUND.

API

  • POST Save Payment
  http://localhost:8888/api/v1/create_intent?customerId= ??&apiKey=
Query Params :
1. customerId
2. apiKey

Body:
    {
   "amount":815,
   "currency":"usd"
}
  • GET List Payments
  http://localhost:8888/api/v1/get_intents?apiKey=
Query Params :
1. apiKey
  • GET Capture
 http://localhost:8888/api/v1/capture_intent?paymentId= ?? &apiKey= ??
Query Params :
1. paymentId
2. apiKey

Body:
    {
   "amount":815,
   "currency":"usd"
}
  • POST confirm
  http://localhost:8888/api/v1/confirm_intent?paymentId= ??&apiKey= ??
Query Params :
1. paymentId
2. apiKey
  • POST refund
http://localhost:8888/api/v1/confirm_intent?paymentId= ??&apiKey= ??
Query Params :
1. paymentId
2. apiKey

Roadmap

  • Made Model Classes.
  • Created Customer.
  • Created Payment Object using Stripe.
  • Added Different methods related to Payments and Customers.

(back to top)

contributors

  • Nilesh Solanki - nileshs2398@gmail..com

references

(back to top)