diff --git a/Veritrans/Notification.php b/Veritrans/Notification.php index 83eb60c..20fe70e 100644 --- a/Veritrans/Notification.php +++ b/Veritrans/Notification.php @@ -16,7 +16,7 @@ class Veritrans_Notification { public function __construct($input_source = "php://input") { - $raw_notification = json_decode(file_get_contents($input_source), true); + $raw_notification = json_decode(stripslashes(trim(file_get_contents($input_source), '"')), true); $status_response = Veritrans_Transaction::status($raw_notification['transaction_id']); $this->response = $status_response; }