Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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.

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"}'
```