2017 © Pedro Peláez
 

library omnipay-stripe

Stripe driver for the Omnipay payment processing library

image

adipasanta/omnipay-stripe

Stripe driver for the Omnipay payment processing library

  • Wednesday, March 28, 2018
  • by adipasanta
  • Repository
  • 1 Watchers
  • 0 Stars
  • 0 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 97 Forks
  • 0 Open issues
  • 19 Versions
  • 0 % Grown

The README.md

Omnipay: Stripe

Stripe driver for the Omnipay PHP payment processing library, (*1)

Build Status Latest Stable Version Total Downloads, (*2)

Omnipay is a framework agnostic, multi-gateway payment processing library for PHP 5.3+. This package implements Stripe support for Omnipay., (*3)

Installation

Omnipay is installed via Composer. To install, simply add it to your composer.json file:, (*4)

{
    "require": {
        "omnipay/stripe": "~2.0"
    }
}

And run composer to update your dependencies:, (*5)

$ curl -s http://getcomposer.org/installer | php
$ php composer.phar update

Basic Usage

The following gateways are provided by this package:, (*6)

For general usage instructions, please see the main Omnipay repository., (*7)

Stripe.js

The Stripe integration is fairly straight forward. Essentially you just pass a token field through to Stripe instead of the regular credit card data., (*8)

Start by following the standard Stripe JS guide here: https://stripe.com/docs/tutorials/forms, (*9)

After that you will have a stripeToken field which will be submitted to your server. Simply pass this through to the gateway as token, instead of the usual card array:, (*10)

        $token = $_POST['stripeToken'];

        $response = $gateway->purchase([
            'amount' => '10.00',
            'currency' => 'USD',
            'token' => $token,
        ])->send();

Stripe Connect

Stripe connect applications can charge an additional fee on top of Stripe's fees for charges they make on behalf of their users. To do this you need to specify an additional transactionFee parameter as part of an authorize or purchase request., (*11)

When a charge is refunded the transaction fee is refunded with an amount proportional to the amount of the charge refunded and by default this will come from your connected user's Stripe account effectively leaving them out of pocket. To refund from your (the applications) Stripe account instead you can pass a refundApplicationFee parameter with a boolean value of true as part of a refund request., (*12)

Note: making requests with Stripe Connect specific parameters can only be made using the OAuth access token you received as part of the authorization process. Read more on Stripe Connect here., (*13)

Test Mode

Stripe accounts have test-mode API keys as well as live-mode API keys. These keys can be active at the same time. Data created with test-mode credentials will never hit the credit card networks and will never cost anyone money., (*14)

Unlike some gateways, there is no test mode endpoint separate to the live mode endpoint, the Stripe API endpoint is the same for test and for live., (*15)

Support

If you are having general issues with Omnipay, we suggest posting on Stack Overflow. Be sure to add the omnipay tag so it can be easily found., (*16)

If you want to keep up to date with release announcements, discuss ideas for the project, or ask more detailed questions, there is also a mailing list which you can subscribe to., (*17)

If you believe you have found a bug, please report it using the GitHub issue tracker, or better yet, fork the library and submit a pull request., (*18)

The Versions

28/03 2018

dev-master

9999999-dev https://github.com/thephpleague/omnipay-stripe

Stripe driver for the Omnipay payment processing library

  Sources   Download

MIT

The Requires

 

The Development Requires

by Adrian Macneil

payment pay gateway merchant omnipay stripe

14/07 2017

V2.4.7

2.4.7.0 https://github.com/thephpleague/omnipay-stripe

Stripe driver for the Omnipay payment processing library

  Sources   Download

MIT

The Requires

 

The Development Requires

by Adrian Macneil

payment pay gateway merchant omnipay stripe

15/06 2017

v2.4.6

2.4.6.0 https://github.com/thephpleague/omnipay-stripe

Stripe driver for the Omnipay payment processing library

  Sources   Download

MIT

The Requires

 

The Development Requires

by Adrian Macneil

payment pay gateway merchant omnipay stripe

28/05 2017

v2.4.4

2.4.4.0 https://github.com/thephpleague/omnipay-stripe

Stripe driver for the Omnipay payment processing library

  Sources   Download

MIT

The Requires

 

The Development Requires

by Adrian Macneil

payment pay gateway merchant omnipay stripe

28/05 2017

v2.4.5

2.4.5.0 https://github.com/thephpleague/omnipay-stripe

Stripe driver for the Omnipay payment processing library

  Sources   Download

MIT

The Requires

 

The Development Requires

by Adrian Macneil

payment pay gateway merchant omnipay stripe

12/05 2017

v2.4.3

2.4.3.0 https://github.com/thephpleague/omnipay-stripe

Stripe driver for the Omnipay payment processing library

  Sources   Download

MIT

The Requires

 

The Development Requires

by Adrian Macneil

payment pay gateway merchant omnipay stripe

15/12 2016

v2.4.2

2.4.2.0 https://github.com/thephpleague/omnipay-stripe

Stripe driver for the Omnipay payment processing library

  Sources   Download

MIT

The Requires

 

The Development Requires

by Adrian Macneil

payment pay gateway merchant omnipay stripe

14/09 2016

v2.4.1

2.4.1.0 https://github.com/thephpleague/omnipay-stripe

Stripe driver for the Omnipay payment processing library

  Sources   Download

MIT

The Requires

 

The Development Requires

by Adrian Macneil

payment pay gateway merchant omnipay stripe

06/08 2016

v2.4.0

2.4.0.0 https://github.com/thephpleague/omnipay-stripe

Stripe driver for the Omnipay payment processing library

  Sources   Download

MIT

The Requires

 

The Development Requires

by Adrian Macneil

payment pay gateway merchant omnipay stripe

26/04 2016

v2.3.3

2.3.3.0 https://github.com/thephpleague/omnipay-stripe

Stripe driver for the Omnipay payment processing library

  Sources   Download

MIT

The Requires

 

The Development Requires

by Adrian Macneil

payment pay gateway merchant omnipay stripe

19/03 2016

v2.3.2

2.3.2.0 https://github.com/thephpleague/omnipay-stripe

Stripe driver for the Omnipay payment processing library

  Sources   Download

MIT

The Requires

 

The Development Requires

by Adrian Macneil

payment pay gateway merchant omnipay stripe

13/01 2016

v2.3.1

2.3.1.0 https://github.com/thephpleague/omnipay-stripe

Stripe driver for the Omnipay payment processing library

  Sources   Download

MIT

The Requires

 

The Development Requires

by Adrian Macneil

payment pay gateway merchant omnipay stripe

10/11 2015

v2.3.0

2.3.0.0 https://github.com/thephpleague/omnipay-stripe

Stripe driver for the Omnipay payment processing library

  Sources   Download

MIT

The Requires

 

The Development Requires

by Adrian Macneil

payment pay gateway merchant omnipay stripe

14/04 2015

v2.2.1

2.2.1.0 https://github.com/thephpleague/omnipay-stripe

Stripe driver for the Omnipay payment processing library

  Sources   Download

MIT

The Requires

 

The Development Requires

by Adrian Macneil

payment pay gateway merchant omnipay stripe

16/03 2015

v2.2.0

2.2.0.0 https://github.com/thephpleague/omnipay-stripe

Stripe driver for the Omnipay payment processing library

  Sources   Download

MIT

The Requires

 

The Development Requires

by Adrian Macneil

payment pay gateway merchant omnipay stripe

27/01 2015

v2.1.2

2.1.2.0 https://github.com/thephpleague/omnipay-stripe

Stripe driver for the Omnipay payment processing library

  Sources   Download

MIT

The Requires

 

The Development Requires

by Adrian Macneil

payment pay gateway merchant omnipay stripe

17/09 2014

2.1.1

2.1.1.0 https://github.com/thephpleague/omnipay-stripe

Stripe driver for the Omnipay payment processing library

  Sources   Download

MIT

The Requires

 

The Development Requires

by Adrian Macneil

payment pay gateway merchant omnipay stripe

08/04 2014

v2.1.0

2.1.0.0 https://github.com/omnipay/stripe

Stripe driver for the Omnipay payment processing library

  Sources   Download

MIT

The Requires

 

The Development Requires

by Adrian Macneil

payment pay gateway merchant omnipay stripe

17/11 2013

v2.0.0

2.0.0.0 https://github.com/omnipay/stripe

Stripe driver for the Omnipay payment processing library

  Sources   Download

MIT

The Requires

 

The Development Requires

by Adrian Macneil

payment pay gateway merchant omnipay stripe