All Projects → jferrettiboke → stripe-graphql

jferrettiboke / stripe-graphql

Licence: MIT license
[WIP] 🚧🚧🚧 😎 Community-driven Stripe GraphQL API with superpowers.

Programming Languages

typescript
32286 projects
javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to stripe-graphql

Stripity stripe
An Elixir Library for Stripe
Stars: ✭ 597 (+1026.42%)
Mutual labels:  stripe, stripe-api
Stripy
Micro wrapper for Stripe's REST API.
Stars: ✭ 49 (-7.55%)
Mutual labels:  stripe, stripe-api
Pinax Stripe
a payments Django app for Stripe
Stars: ✭ 650 (+1126.42%)
Mutual labels:  stripe, stripe-api
Stripe Webhook Monitor
Stripe Webhook Monitor provides a real-time feed and graph of Stripe events received via webhooks. 📈✨
Stars: ✭ 356 (+571.7%)
Mutual labels:  stripe, stripe-api
Stripe
💰 Stripe API
Stars: ✭ 150 (+183.02%)
Mutual labels:  stripe, stripe-api
Stripe Connect Rocketrides
Sample on-demand platform built on Stripe: Connect onboarding for pilots, iOS app for passengers to request rides.
Stars: ✭ 426 (+703.77%)
Mutual labels:  stripe, stripe-api
Stripe Demo Connect Roastery Saas Platform
Roastery demo SaaS platform using Stripe Connect
Stars: ✭ 33 (-37.74%)
Mutual labels:  stripe, stripe-api
stripe-course
Stripe Payments In Practice - Build your own online ecommerce store and subscription membership website
Stars: ✭ 31 (-41.51%)
Mutual labels:  stripe, stripe-api
Terraform Provider Stripe
A Terraform Provider for Stripe
Stars: ✭ 143 (+169.81%)
Mutual labels:  stripe, stripe-api
Stripe Elixir
Stripe API client for Elixir
Stars: ✭ 66 (+24.53%)
Mutual labels:  stripe, stripe-api
Nest-Js-Boiler-Plate
Nest Js Boilerplate with JWT authentication, CRUD functions and payment gateways.
Stars: ✭ 14 (-73.58%)
Mutual labels:  stripe, stripe-api
React Express Stripe
💰 Minimal Boilerplate for Stripe used in React and Express. Charge payments from your customers with this project.
Stars: ✭ 209 (+294.34%)
Mutual labels:  stripe, stripe-api
stripe-scala
Scala library for the Stripe API
Stars: ✭ 33 (-37.74%)
Mutual labels:  stripe, stripe-api
Vue Stripe Elements
A Vue 2 component collection for StripeElements
Stars: ✭ 498 (+839.62%)
Mutual labels:  stripe, stripe-api
procesa-pagos-con-laravel
Código fuente resultado del curso "Procesa pagos con Laravel y las mejores plataformas de pagos"
Stars: ✭ 38 (-28.3%)
Mutual labels:  stripe, stripe-api
Stripe Rs
Moved to https://github.com/wyyerd/stripe-rs.
Stars: ✭ 16 (-69.81%)
Mutual labels:  stripe, stripe-api
MERN-Ecommerce
An E-commerce app built using MERN stack. It has 4 social login options and implements email verification as well. Stripe and Paypal payment gateways are implemented.
Stars: ✭ 50 (-5.66%)
Mutual labels:  stripe, stripe-api
nuxt-stripejs
💳 NuxtJS module for Stripe.js which loads only when required and w/ retry mechanism
Stars: ✭ 17 (-67.92%)
Mutual labels:  stripe, stripe-api
Stripe Kit
Stars: ✭ 50 (-5.66%)
Mutual labels:  stripe, stripe-api
Stripe
Stripe library for Vapor
Stars: ✭ 151 (+184.91%)
Mutual labels:  stripe, stripe-api

Preview

stripe-graphql

npm license

⚠️ Warning! This is a very early version. You SHOULD NOT use this in production yet.

What is stripe-graphql?

stripe-graphql is a GraphQL API for Stripe with a lot of benefits. Its goal is to help you do things better and faster related to the Stripe world while providing you with the best developer experience (DX).

It ships with a type-safe GraphQL client, and exposes the GraphQL schema object so that you can create your own Stripe GraphQL API, transform the schema or do whatever you need.

Features

  • Simple and powerful
  • Formatted amounts ready to use
  • Type-safe GraphQL-based client
  • Expose the GraphQL schema object

TODO

  • DataLoader support for batching and caching
  • Nexus extension/plugin for more easy integration

Get started

npm install stripe-graphql or yarn add stripe-graphql.

Client

Request

import { client } from "stripe-graphql";

try {
  const data = await client.query({
    plans: {
      nickname: true,
      active: true,
      amount: { raw: true, raw_formatted: true, formatted: true },
      currency: { code: true, symbol: true },
    },
  });
  console.log(JSON.stringify(data, null, 2));
} catch (error) {
  console.log(error);
}

Response

{
  "plans": [
    {
      "nickname": "premium-monthly-plan-in-eur",
      "active": true,
      "amount": {
        "raw": 1499,
        "raw_formatted": 14.99,
        "formatted": "€14.99"
      },
      "currency": {
        "code": "EUR",
        "symbol": ""
      }
    },
    {
      "nickname": "standard-monthly-plan-in-eur",
      "active": true,
      "amount": {
        "raw": 999,
        "raw_formatted": 9.99,
        "formatted": "€9.99"
      },
      "currency": {
        "code": "EUR",
        "symbol": ""
      }
    },
    {
      "nickname": "basis-monthly-plan-in-eur",
      "active": true,
      "amount": {
        "raw": 499,
        "raw_formatted": 4.99,
        "formatted": "€4.99"
      },
      "currency": {
        "code": "EUR",
        "symbol": ""
      }
    }
  ]
}

Schema

import { schema } from "stripe-graphql";

// Do whatever you need with the schema

Contributing

Do you know how to improve it? Feel free to contribute to this project.

  1. Install dependencies: npm install or yarn install
  2. Run the development server: npm run dev or yarn dev

The server should start. You're ready to help. 🙏

License

MIT.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].