You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+9-9Lines changed: 9 additions & 9 deletions
Original file line number
Diff line number
Diff line change
@@ -106,8 +106,8 @@ Next, run composer to update your dependencies:
106
106
107
107
## Payment Gateways
108
108
109
-
All payment gateways must implement [GatewayInterface](https://github.com/omnipay/omnipay/blob/master/src/Omnipay/Common/GatewayInterface.php), and will usually
110
-
extend [AbstractGateway](https://github.com/omnipay/omnipay/blob/master/src/Omnipay/Common/AbstractGateway.php) for basic functionality.
109
+
All payment gateways must implement [GatewayInterface](https://github.com/omnipay/common/blob/master/src/Omnipay/Common/GatewayInterface.php), and will usually
110
+
extend [AbstractGateway](https://github.com/omnipay/common/blob/master/src/Omnipay/Common/AbstractGateway.php) for basic functionality.
111
111
112
112
The following gateways are available and officially supported:
113
113
@@ -170,7 +170,7 @@ gateway (other than by the methods they support).
170
170
171
171
## Credit Card / Payment Form Input
172
172
173
-
User form input is directed to an [CreditCard](https://github.com/omnipay/omnipay/blob/master/src/Omnipay/Common/CreditCard.php)
173
+
User form input is directed to an [CreditCard](https://github.com/omnipay/common/blob/master/src/Omnipay/Common/CreditCard.php)
174
174
object. This provides a safe way to accept user input.
If you submit credit card details which are obviously invalid (missing required fields, or a number
231
-
which fails the Luhn check), [InvalidCreditCardException](https://github.com/omnipay/omnipay/blob/master/src/Omnipay/Common/Exception/InvalidCreditCardException.php)
231
+
which fails the Luhn check), [InvalidCreditCardException](https://github.com/omnipay/common/blob/master/src/Omnipay/Common/Exception/InvalidCreditCardException.php)
232
232
will be thrown. You should validate the card details using your framework's validation library
233
233
before submitting the details to your gateway, to avoid unnecessary API calls.
234
234
@@ -295,7 +295,7 @@ To summarize the various parameters you have available to you:
295
295
296
296
## The Payment Response
297
297
298
-
The payment response must implement [ResponseInterface](https://github.com/omnipay/omnipay/blob/master/src/Omnipay/Common/ResponseInterface.php). There are two main types of response:
298
+
The payment response must implement [ResponseInterface](https://github.com/omnipay/common/blob/master/src/Omnipay/Common/Message/ResponseInterface.php). There are two main types of response:
299
299
300
300
* Payment was successful (standard response)
301
301
* Website requires redirect to off-site payment form (redirect response)
@@ -396,13 +396,13 @@ you really think this should be a core feature and worth the effort.
396
396
397
397
## Example Application
398
398
399
-
An example application is provided in the `example` directory. You can run it using PHP's built in
400
-
web server (PHP 5.4+):
399
+
An example application is provided in the [omnipay/example](https://github.com/omnipay/example) repo.
400
+
You can run it using PHP's built in web server (PHP 5.4+):
401
401
402
402
$ php composer.phar update --dev
403
-
$ php -S localhost:8000 -t example/
403
+
$ php -S localhost:8000
404
404
405
-
For more information, see the [example application directory](https://github.com/omnipay/omnipay/tree/master/example).
405
+
For more information, see the [Omnipay example application](https://github.com/omnipay/example).
0 commit comments