stripe-server

http microservice for handling payments for stripe

Usage no npm install needed!

<script type="module">
  import stripeServer from 'https://cdn.skypack.dev/stripe-server';
</script>

README

stripe-server

Microservice that handles stripe payments. Right now, only works with the 'charge' option.

API

GET /

PING for health of the service.

POST /charge

Create a charge for a given card.

Request:

{
  "amount": 2000,
  "currency": "usd", 
  "source": //obtained with stripe.js/checkout,
  "description": "Charge for a particular person",
}

Response:

See https://stripe.com/docs/api/node#charge_object