stripe

Nim client for Stripe.com

Pure Nim score 15/100 · tests present · no docs generated

Summary

Latest Version Unknown
License MIT
CI Status Failing
Downloads 0
Last Indexed 2026-07-21 05:25

Installation

nimble install stripe
choosenim install stripe
git clone https://github.com/iffy/nim-stripe

OS Compatibility

Platform Linux macOS Windows FreeBSD OpenBSD NetBSD Android iOS WASM Embedded
stripe - - - - - - -

Source

Repository https://github.com/iffy/nim-stripe
Homepage https://github.com/iffy/nim-stripe
Registry Source nimble_official

README

Very basic interface for interacting with Stripe.

GET example:

import stripe

proc main() {.async.} =
  let secret_key = "..."
  let client = newStripeClient(secret_key)
  let products = await stripeClient.get("/v1/products")
  echo $products

POST example:

import stripe
import std/tables

proc main {.async.} =
  let secret_key = "..."
  let stripeClient = newStripeClient(secret_key)
  let charge = await stripeClient.post("/v1/charges", {
        "amount": 1000,
        "currency": "usd",
        "description": "A Charge",
        "statement_descriptor": "Widget You Forgot Purchasing",
        "receipt_email": "bob@example.com",
        "source": "stripeToken",
      }.toTable())