#Stripe | Financial Infrastructure to Grow Your Revenue !
Explore the docs »
Table of Contents
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.
Tech Stack :
To get a local copy up and running follow these simple example steps.
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
This Application Consist 2 Modules
- Based Upon Stripe API Docs.
- It performs Registration Of Customer
- Search a customer, Get a list of customers , etc.
- 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.
- 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
- Made Model Classes.
- Created Customer.
- Created Payment Object using Stripe.
- Added Different methods related to Payments and Customers.
- Nilesh Solanki - nileshs2398@gmail..com
- Stripe API docs - [https://stripe.com/docs/api/payment_intents]
- Payment Intents - https://stripe.com/docs/payments/payment-intents
- Stripe go-SDK - https://github.com/stripe/stripe-go
- Stripe Other Language SDKs - https://github.com/stripe
- Setup simple backend in Golang - https://github.com/gorilla/mux