Skip to content

Commit 0aa8bf9

Browse files
committed
Additions to README (re Form).
1 parent 957f9f7 commit 0aa8bf9

File tree

1 file changed

+11
-6
lines changed

1 file changed

+11
-6
lines changed

README.md

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -650,12 +650,12 @@ $response = $gateway->authorize([
650650
]);
651651
```
652652

653-
The `$response` will be a `POST` redirect, which will take use to the gateway.
653+
The `$response` will be a `POST` redirect, which will take the user to the gateway.
654654
At the gateway, the user will authenticate or authorise their credit card,
655655
perform any 3D Secure actions that may be requested, then will return to the
656656
merchant site.
657657

658-
To get the result details, the transaction is "completed":
658+
To get the result details, the transaction is "completed" on return:
659659

660660
```php
661661
// The result will be read and decrypted from the return URL (or failure URL)
@@ -668,13 +668,18 @@ $result->getTransactionReference();
668668
// etc.
669669
```
670670

671-
If you already have the encrypted response string, then it can be optionally
672-
passed in:
671+
If you already have the encrypted response string, then it can be passed in.
672+
However, you would normally leave it for the driver to read it for you from
673+
the current server request:
673674

675+
$crypt = $_GET['crypt']; // or supplied by your framework
674676
$result = $gateway->completeAuthorize(['crypt' => $crypt])->send();
675677

676-
This should normally not be necessary, but is handy for testing or if the
677-
current page query parameters are not available in a particular architecture.
678+
This is handy for testing or if the current page query parameters are not
679+
available in a particular architecture.
680+
681+
Like `Server` and `Direct`, you can use either the `DEFERRED` or the `AUTHENTICATE`
682+
method to reserve the amount.
678683

679684
### Form Purchase
680685

0 commit comments

Comments
 (0)