diff --git a/src/LaravelFaspay.php b/src/LaravelFaspay.php index 512ab6c..9e7572e 100644 --- a/src/LaravelFaspay.php +++ b/src/LaravelFaspay.php @@ -133,8 +133,13 @@ public function cancelPayment($trx_id, $billno, $paymentcancel) } public function notifier() + { + return json_decode(file_get_contents('php://input')); // Return the JSON Data from Faspay + } + + public function notifierXML() { $notif = new NotifyHandler(); - return $notif->handle(); + return $notif->handle(); // Return the XML Data } } \ No newline at end of file