Skip to content

Commit 17c6e18

Browse files
committed
Dependency changed as requested.
1 parent 83034ff commit 17c6e18

File tree

3 files changed

+18
-2
lines changed

3 files changed

+18
-2
lines changed

.gitignore

+2-1
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
1-
/vendor
1+
/vendor
2+
composer.lock

README.md

+15
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ This package comes with:
1919
## Contents
2020

2121
- [Installation](#installation)
22+
- [Adding a service](#adding-a-service)
2223
- [Gateway Usage](#gateway-usage)
2324
- [Accessing Omnipay](#accessing-omnipay)
2425
- [Adding Options](#adding-options)
@@ -45,6 +46,20 @@ Then in your `config/shop.php` add
4546

4647
in the `gateways` array.
4748

49+
## Adding a service
50+
51+
Once installed, the next step will be to add the service of your choice in `composer.json` file.
52+
53+
The services available are listed here:
54+
55+
[https://github.com/thephpleague/omnipay#payment-gateways](https://github.com/thephpleague/omnipay#payment-gateways)
56+
57+
For example, the following dependency must be added to use **Stripe**:
58+
59+
```json
60+
"omnipay/stripe": "~2.0"
61+
```
62+
4863
## Gateway Usage
4964

5065
The following example will give you an idea of how use and access omnipay:

composer.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
"php": ">=5.4.0",
1414
"illuminate/console": "~5.0",
1515
"illuminate/support": "~5.0",
16-
"omnipay/omnipay": "2.0.*"
16+
"omnipay/common": "~2.4"
1717
},
1818
"require-dev": {
1919
"sami/sami": "dev-master"

0 commit comments

Comments
 (0)