Skip to content

Commit

Permalink
Create notification handler with JSON & XML
Browse files Browse the repository at this point in the history
  • Loading branch information
TheArKaID committed Jun 4, 2020
1 parent 9a55772 commit 14dbf9d
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/LaravelFaspay.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
}

0 comments on commit 14dbf9d

Please sign in to comment.