update create booking payment with wallet logic

This commit is contained in:
JiaSheng
2024-01-19 21:45:07 +08:00
parent 42becd0cf5
commit 8f20c7d021
@@ -131,6 +131,10 @@ class CreateBookingPaymentLogic extends AbstractControllerLogic
$this->updatesTransactionStatus->execute($transaction, ApprovalStatus::PENDING_VERIFICATION);
}
if(PaymentMethodType::PAYMENT_METHODS[$request->input('payment_method')] == PaymentMethodType::WALLET){
$this->updatesTransactionStatus->execute($transaction, ApprovalStatus::APPROVED);
}
return $this->resourceResponse(new TransactionResource($transaction));
}