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
* wip
* add PHP 8.1 to test suite
* use setTransactionReference instead of setPaymentReference for CaptureRequest
* update license
* update readme and add comments
* add badges
* update readme
* improve tests
Copy file name to clipboardExpand all lines: LICENSE
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -1,4 +1,4 @@
1
-
Copyright 2021 Swiftmade OÜ
1
+
Copyright 2023 Swiftmade OÜ
2
2
3
3
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
Copy file name to clipboardExpand all lines: README.md
+77-11Lines changed: 77 additions & 11 deletions
Original file line number
Diff line number
Diff line change
@@ -1,20 +1,31 @@
1
-
# Omnipay - EveryPay Gateway
1
+
[](https://packagist.org/packages/swiftmade/omnipay-everypay)
@@ -115,3 +126,58 @@ if ($card = $response->getCardToken()) {
115
126
}
116
127
```
117
128
129
+
### Authorize & Capture Later
130
+
131
+
In EveryPay, when the payment will be captured is configured at the account level. If you want to authorize a payment without capturing it, then you need a Merchant Account configured accordingly.
132
+
133
+
To authorize a payment, simply substitue `purchase` and `completePurchase` methods with `authorize` and `completeAuthorize`. Then call `capture` to capture the funds.
134
+
135
+
```php
136
+
// Here, pass the payment array that we previously stored when creating the payment
0 commit comments