Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/marcbachmann/stripe-create-charge
A microservice to charge a credit card using a stripe token retrieved in a client side checkout process.
https://github.com/marcbachmann/stripe-create-charge
charge checkout credit-card-payments stripe
Last synced: 3 months ago
JSON representation
A microservice to charge a credit card using a stripe token retrieved in a client side checkout process.
- Host: GitHub
- URL: https://github.com/marcbachmann/stripe-create-charge
- Owner: marcbachmann
- Created: 2017-12-12T23:56:26.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2023-12-15T05:32:53.000Z (about 1 year ago)
- Last Synced: 2024-10-12T18:08:39.677Z (3 months ago)
- Topics: charge, checkout, credit-card-payments, stripe
- Language: JavaScript
- Homepage:
- Size: 21.5 KB
- Stars: 5
- Watchers: 2
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# stripe-create-charge
A microservice to charge a credit card using a stripe token retrieved in a client side checkout process.
See https://stripe.com/docs/checkout/tutorial for more details.## Run
```bash
docker run -it --rm -e STRIPE_SECRET=sk_your_secret -p 8080:8080 marcbachmann/stripe-create-charge
curl -XPOST http://localhost:8080/charge -H 'Content-Type: application/json' -d '{"amount": 1000, "currency": "usd", "description": "some description", "source": "tokenretrievedfromstripe"}'
```