upaygo

command module
v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 2, 2019 License: MIT Imports: 13 Imported by: 0

README

Run in Postman

uPay in Golang

Payment Gateway Microservice in Golang

PSD2 SCA

EU SCA law will be on duty after 14th September 2019

Updates

Feature

  • 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

Installation

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 # go build main.go

How to use

Example of a checkout web page

  1. User to insert card information with Stripe Elements
  2. Create an intent with JS SDK
  3. Confirm the intent
  4. Does the intent requires 3D Secure (intent status and next_action param)
    1. No, Point 5)
    2. Yes, Stripe Elements will open the a 3D Secure popup
  5. Do you after checkout domain logic
  6. Any error during your checkout process?
    1. Yes, cancel the intent
    2. No, capture the intent

Tests

go test ./... -failfast -tags=unit
go test ./... -failfast -tags=stripe -config=ABS_PATH/config.json
APIs
  • Swagger /swagger/index.html

TODO

See projects section

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL