Skip to content
This repository has been archived by the owner on Dec 12, 2024. It is now read-only.
/ lago-stripe-qa Public archive

Flow to get Stripe checkout with Lago

Notifications You must be signed in to change notification settings

getlago/lago-stripe-qa

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

50 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Start the API

cd api

touch .env # You should update this file

docker-compose build qa_api
docker-compose up qa_api

API url will be http://0.0.0.0:4567

.env

STRIPE_SECRET_KEY=CHANGE_ME
LAGO_API_KEY=CHANGE_ME
LAGO_API_URL=CHANGE_ME
REDIS_URL=redis://redis:6379

API end points

  • get / : Health check

  • post /customer

    • JSON payload should contain customer_id, email, name
    • response will be a json with customer_id, lago_id, stripe_customer_id (blanck at this step)
  • get /customer/:id

    • id = customer_id
    • response will be a json with customer_id, lago_id, stripe_customer_id
    • should be called until stripe_customer_id is present
  • get /secret/:id

    • id = customer_id
    • retrieve stripe intent secret
    • response will be a json with client_secret. Use this value to retrieve the stripe setup intent

Front app

yarn start

.env

API_URL=TO_CHANGE
STRIPE_SECRET_KEY=TO_CHANGE

App will be running on http://192.168.1.17:8080/

About

Flow to get Stripe checkout with Lago

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •