https://github.com/getlago/lago-stripe-qa
Flow to get Stripe checkout with Lago
https://github.com/getlago/lago-stripe-qa
Last synced: 29 days ago
JSON representation
Flow to get Stripe checkout with Lago
- Host: GitHub
- URL: https://github.com/getlago/lago-stripe-qa
- Owner: getlago
- Archived: true
- Created: 2022-06-27T14:02:39.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2024-11-20T07:37:54.000Z (7 months ago)
- Last Synced: 2025-02-17T06:27:27.158Z (4 months ago)
- Language: TypeScript
- Homepage:
- Size: 1.37 MB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 9
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## Start the API
```bash
cd apitouch .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
```bash
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
```bash
yarn start
```### .env
```bash
API_URL=TO_CHANGE
STRIPE_SECRET_KEY=TO_CHANGE
```App will be running on http://192.168.1.17:8080/