Skip to content

Commit

Permalink
Issue #128 update to default exitOnResponse action documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
judgej committed Jun 18, 2019
1 parent 5c6660e commit 6bb89ea
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -599,15 +599,19 @@ The `$nextUrl` is where you want Sage Pay to send the user to next.
It will often be the same URL whether the transaction was approved or not,
since the result will be safely saved in the database.

The `confirm()`, `error()` and `reject()` methods will all exit the
The `confirm()`, `error()` and `reject()` methods will all echo the expected
return payload and expect your application to rerturn a HTTP Status `200`
without adding any further content.

These functions used to exit the
application immediately to prevent additional output being added to
the response. You can disable this by setting the `exitOnResponse`
the response. You can restore this functionality by setting the `exitOnResponse`
option:

```php
$gateway->setExitOnResponse(false);
$gateway->setExitOnResponse(true);
// or
$notifyRequest->setExitOnResponse(false);
$notifyRequest->setExitOnResponse(true);
```

If you just want the body payload, this method will return it without
Expand Down

0 comments on commit 6bb89ea

Please sign in to comment.