2
2
3
3
** An easy to use, consistent payment processing library for PHP 5.3+**
4
4
5
- [ ![ Build Status] ( https://travis-ci.org/omnipay/omnipay .png?branch=master )] ( https://travis-ci.org/omnipay/omnipay )
5
+ [ ![ Build Status] ( https://travis-ci.org/omnipay/common .png?branch=master )] ( https://travis-ci.org/omnipay/common )
6
6
[ ![ Latest Stable Version] ( https://poser.pugx.org/omnipay/omnipay/version.png )] ( https://packagist.org/packages/omnipay/omnipay )
7
7
[ ![ Total Downloads] ( https://poser.pugx.org/omnipay/omnipay/d/total.png )] ( https://packagist.org/packages/omnipay/omnipay )
8
8
@@ -19,19 +19,22 @@ is fully unit tested, and even comes with an example application to get you star
19
19
* Because most payment gateways have exceptionally poor documentation
20
20
* Because you are writing a shopping cart and need to support multiple gateways
21
21
22
- ** Important Note: Upgrading from <1 .0**
22
+ ** Important Note: Upgrading from <2 .0**
23
23
24
- If you are upgrading from a pre-1.0 version of Omnipay, please note that the currency format has changed.
25
- See the [ changelog] ( https://github.com/omnipay/omnipay/blob/master/CHANGELOG.md ) for more details.
24
+ If you are upgrading from a pre-2.0 version of Omnipay, please note that the
25
+ project has now been split into multiple packages. There have also been some
26
+ changes to how gateway instances are created. See the
27
+ [ full release notes] ( https://github.com/omnipay/omnipay/releases/tag/v2.0.0 )
28
+ for more details.
26
29
27
30
## TL;DR
28
31
29
32
Just want to see some code?
30
33
31
34
``` php
32
- use Omnipay\Common\GatewayFactory ;
35
+ use Omnipay\Omnipay ;
33
36
34
- $gateway = GatewayFactory ::create('Stripe');
37
+ $gateway = Omnipay ::create('Stripe');
35
38
$gateway->setApiKey('abc123');
36
39
37
40
$formData = ['number' => '4242424242424242', 'expiryMonth' => '6', 'expiryYear' => '2016', 'cvv' => '123'];
@@ -121,9 +124,9 @@ The following gateways are already implemented:
121
124
Gateways are created and initialized like so:
122
125
123
126
``` php
124
- use Omnipay\Common\GatewayFactory ;
127
+ use Omnipay\Omnipay ;
125
128
126
- $gateway = GatewayFactory ::create('PayPal_Express');
129
+ $gateway = Omnipay ::create('PayPal_Express');
127
130
$gateway->setUsername('adrian');
128
131
$gateway->setPassword('12345');
129
132
```
@@ -396,24 +399,11 @@ If you want to keep up to date with release anouncements, discuss ideas for the
396
399
or ask more detailed questions, there is also a [ mailing list] ( https://groups.google.com/forum/#!forum/omnipay ) which
397
400
you can subscribe to.
398
401
399
- If you believe you have found a bug, please report it using the [ GitHub issue tracker] ( https://github.com/omnipay/omnipay/issues ) ,
400
- or better yet, fork the library and submit a pull request.
401
-
402
- ## Contributing
403
-
404
- * Fork the project.
405
- * Make your feature addition or bug fix.
406
- * Add tests for it. This is important so I don't break it in a future version unintentionally.
407
- * Commit just the modifications, do not mess with the composer.json or CHANGELOG.md files.
408
- * Ensure your code is nicely formatted in the [ PSR-2] ( https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-2-coding-style-guide.md )
409
- style and that all tests pass.
410
- * Send the pull request.
411
- * Check that the [ travis build] ( https://travis-ci.org/omnipay/omnipay ) passed. If not, rinse and repeat.
402
+ If you believe you have found a bug, please report it using the GitHub issue tracker
403
+ for the appropriate package, or better yet, fork the library and submit a pull request.
412
404
413
405
## Feedback
414
406
415
407
** Please provide feedback!** We want to make this library useful in as many projects as possible.
416
408
Please head on over to the [ mailing list] ( https://groups.google.com/forum/#!forum/omnipay )
417
409
and point out what you do and don't like, or fork the project and make suggestions. ** No issue is too small.**
418
-
419
- [ ![ Bitdeli Badge] ( https://d2weczhvl823v0.cloudfront.net/adrianmacneil/omnipay/trend.png )] ( https://bitdeli.com/free " Bitdeli Badge ")
0 commit comments