mapado/stripe

High level api for stripe-php

v0.11.0 2015-05-19 14:56 UTC

This package is auto-updated.

Last update: 2020-01-15 11:59:58 UTC


README

High level api for stripe-php

Installation

Install with composer:

composer require "mapado/stripe:~0.7"

Usage

Initialize the API:

$privateKey = 'pk_.....';
$stripeApi = new \Mapado\Stripe\StripeApi($privateKey);

call the wanted method:

$invoice = $stripeApi->getInvoice('invoice_id');

Those methods returns Proxy classes. You can chain method like this:

$subscription = $invoice->getSubscription();

Status

The current package is in early development. A very small number of methods is implemented.

Feel free to fork it and create pull requests to add your logic.

SensioLabsInsight