We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents f36d4a1 + ef33cc4 commit 68aef06Copy full SHA for 68aef06
src/MobilpayGateway.php
@@ -30,13 +30,16 @@ public function purchase($autoRedirect = true)
30
return $response;
31
}
32
33
- public function response()
+ public function response($autoSendResponse = true)
34
{
35
$gateway = Omnipay::create('MobilPay');
36
$gateway->setPrivateKey(config('mobilpay.private_key_path'));
37
38
$response = $gateway->completePurchase($_POST)->send();
39
- $response->sendResponse();
+
40
+ if ($autoSendResponse) {
41
+ $response->sendResponse();
42
+ }
43
44
45
0 commit comments