Payment Gateway Microservice in Golang
EU SCA law will be on duty after 14th September 2019
- 13/08/2019 - For UK cards the SCA implementation deadline is March 2021
- SCA ready with Stripe Payment Intents
- Off-session intents
- Separation of auth and capture
- New intent
- Confirm intent
- Capture/Delete intent
- No database infrastructure needed
- Stripe API keys configuration per currency
cp config.json.dist config.json
vi config.json # Add your config values
# API doc
swag init
# If you want to contribute
cp .github/hooks/pre-commit .git/hooks/pre-commit
# Open and change absolute config path
go run main.go -config=config.json
Example of a checkout web page
- User to insert card information with Stripe Elements
- Create an intent with JS SDK
- Confirm the intent
- Does the intent requires 3D Secure (intent status and next_action param)
- No, Point 5)
- Yes, Stripe Elements will open the a 3D Secure popup
- Do you after checkout domain logic
- Any error during your checkout process?
- Yes, cancel the intent
- No, capture the intent
go test ./... -failfast -tags=unit
go test ./... -failfast -tags=stripe -config=ABS_PATH/config.json
- Swagger /swagger/index.html
See projects section