Skip to content
This repository was archived by the owner on Jul 4, 2023. It is now read-only.

Commit a877fc9

Browse files
committed
add midtrans error message when status 400
1 parent 10adc9a commit a877fc9

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

composer.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"version": "0.1.3",
2+
"version": "0.1.4",
33
"name": "gradints/laravel-midtrans",
44
"description": "Integrate Midtrans payment gateway to Laravel project.",
55
"keywords": [

src/MidtransHelpers.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ public static function tryCatch(callable $callback)
6262
$message = __('Unknown error.') . ' ' . $ex->getMessage();
6363
}
6464
throw \Illuminate\Validation\ValidationException::withMessages([
65-
'payments' => [$message],
65+
'payments' => [$message, $ex->getMessage()],
6666
]);
6767
}
6868
}

0 commit comments

Comments
 (0)