Skip to content

Commit e74da15

Browse files
committed
Update docs.
1 parent 4576ba3 commit e74da15

File tree

1 file changed

+13
-3
lines changed

1 file changed

+13
-3
lines changed

README.md

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,14 @@
77
Table of Contents
88
=================
99

10+
* [Table of Contents](#table-of-contents)
1011
* [mPAY24 Driver for Omnipay v3](#mpay24-driver-for-omnipay-v3)
1112
* [Seamless Payment Initiation](#seamless-payment-initiation)
1213
* [Create Token](#create-token)
13-
* [Payment using Token](#payment-using-token)
14+
* [Payment Using Token](#payment-using-token)
1415
* [Seamless Complete Payment](#seamless-complete-payment)
1516
* [Payment Page](#payment-page)
17+
* [Purchase (redirect)](#purchase-redirect)
1618
* [Payment Page Complete Payment](#payment-page-complete-payment)
1719
* [Notification Handler](#notification-handler)
1820

@@ -108,7 +110,7 @@ carried forward through the session instead.
108110

109111
The `/pay` endpoint handles the actual payment.
110112

111-
### Payment using Token
113+
### Payment Using Token
112114

113115
```php
114116
use Omnipay\Omnipay;
@@ -168,7 +170,7 @@ if (! $response->isSuccessful() && $response->isRedirect()) {
168170

169171
### Seamless Complete Payment
170172

171-
After 3D Secure is completed, you will be returned to the `/complete` endpoint
173+
After 3D Secure is completed, you will be returned to your `/complete` endpoint
172174
where you need to fetch the results of the transation:
173175

174176
```
@@ -191,13 +193,21 @@ $response = $request->send();
191193
The `$response` will contain the normal Omnipay statuses and messages to define
192194
the result.
193195

196+
Note: your `complete` endpoint will be given the transaction result when redirected
197+
from the gateway.
198+
This result is **not** signed, and so can be easily faked by an end user.
199+
For this reason, this driver fetches the result from the gateway (a "pull" notification)
200+
to ensure no untrusted user data becomes a part of the process.
201+
194202
## Payment Page
195203

196204
The payment page sends the user to the payment gateway to make a payment.
197205
The user will have a single payment type chosen for them, or can choose
198206
from a range of payment types offered, from a list filtered by the
199207
merchant site.
200208

209+
### Purchase (redirect)
210+
201211
```php
202212
```php
203213
use Omnipay\Omnipay;

0 commit comments

Comments
 (0)