Skip to content

Commit 467522d

Browse files
committed
Note on legacy use of complete* being replaced by acceptNotification
1 parent aa01785 commit 467522d

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -474,6 +474,12 @@ $notification->getMessage(); // Additional message, if any, provided by the gate
474474
// update the status of the corresponding transaction in your database
475475
```
476476

477+
**Note:** some earlier gateways used the `completeAuthorize` and `completePurchase` messages to handle the incoming
478+
notifications. These are being converted and the `complete*` messages deprecated.
479+
They won't be removed in OmniPay 2.x, but it is advisable to switch to the `acceptNotification` message when convenient.
480+
An example is Sage Pay Server [completeAuthorize](https://github.com/thephpleague/omnipay-sagepay/blob/master/src/ServerGateway.php#L81)
481+
which is now handled by [acceptNotification](https://github.com/thephpleague/omnipay-sagepay/blob/master/src/ServerGateway.php#L40).
482+
477483
## Example Application
478484

479485
An example application is provided in the [omnipay/example](https://github.com/thephpleague/omnipay-example) repo.

0 commit comments

Comments
 (0)