bitfix midtrans notification

dev
Aji Kamaludin 1 year ago
parent ad8d8abe08
commit 6073bf801e
No known key found for this signature in database
GPG Key ID: 19058F67F0083AD3

@ -163,13 +163,15 @@ class DepositController extends Controller
public function mindtrans_notification(Request $request)
{
info('mindtrans_notification', ['request boyd' => $request->input()]);
DB::beginTransaction();
$deposit = DepositHistory::where('id', $request->order_id)->first();
if ($deposit != null && $deposit->is_valid != DepositHistory::STATUS_VALID) {
$deposit->fill([
'payment_response' => json_encode($request->all()),
'payment_type' => $request->result['payment_type'],
'payment_type' => $request->payment_type,
]);
if ($request->transaction_status == 'settlement' || $request->transaction_status == 'capture') {

@ -29,7 +29,7 @@ return new class extends Migration
$table->string('payment_channel')->nullable();
$table->string('payment_token')->nullable();
$table->string('payment_status')->nullable();
$table->string('payment_response')->nullable();
$table->text('payment_response')->nullable();
$table->string('payment_type')->nullable();
$table->timestamps();

Loading…
Cancel
Save