Skip to content

Commit 6bb89ea

Browse files
authored
Issue #128 update to default exitOnResponse action documentation
1 parent 5c6660e commit 6bb89ea

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

README.md

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -599,15 +599,19 @@ The `$nextUrl` is where you want Sage Pay to send the user to next.
599599
It will often be the same URL whether the transaction was approved or not,
600600
since the result will be safely saved in the database.
601601

602-
The `confirm()`, `error()` and `reject()` methods will all exit the
602+
The `confirm()`, `error()` and `reject()` methods will all echo the expected
603+
return payload and expect your application to rerturn a HTTP Status `200`
604+
without adding any further content.
605+
606+
These functions used to exit the
603607
application immediately to prevent additional output being added to
604-
the response. You can disable this by setting the `exitOnResponse`
608+
the response. You can restore this functionality by setting the `exitOnResponse`
605609
option:
606610

607611
```php
608-
$gateway->setExitOnResponse(false);
612+
$gateway->setExitOnResponse(true);
609613
// or
610-
$notifyRequest->setExitOnResponse(false);
614+
$notifyRequest->setExitOnResponse(true);
611615
```
612616

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

0 commit comments

Comments
 (0)