Skip to content
This repository has been archived by the owner on Feb 23, 2023. It is now read-only.

A wrapper of the stripe wrapper of the stripe API following the Fluent Interface design pattern.

Notifications You must be signed in to change notification settings

bennetthardwick/stripe-wrapper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

42 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

THIS PROJECT IS CURRENTLY A WORK IN PROGRESS, VERY LIMITED FEATURES HAVE BEEN IMPLEMENTED


Fluent Interface Stripe

A TypeScript wrapper of the stripe wrapper of the stripe API following the Fluent Interface design pattern. Currently a work in progress.

Getting Started

import { Stripe, Charge } from './stripe-wrapper/index';

// First initialise Stripe
let stripe = Stripe('sk_test_...');

// Then create the charge
let charge = new Charge('tok_visa');
charge.amount(1000)
      .currency('usd')
      .description('Example')
      .process();

Features

Currently implemented features:

  • Charges
  • Customers
  • Invoices
  • Orders
  • Refunds

About

A wrapper of the stripe wrapper of the stripe API following the Fluent Interface design pattern.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published