dev add api for payment
Test Workflow / test (push) Successful in 3s

This commit is contained in:
vladp
2026-02-19 15:06:48 +07:00
parent e9cdc66f72
commit d4f26db9ce
2 changed files with 3 additions and 2 deletions
@@ -67,7 +67,7 @@ public class PaymentService {
String paymentUuid = (String) object.get("id");
Payment payment = paymentRepository.findByPaymentUuid(paymentUuid)
.orElseThrow(() -> new RuntimeException("Payment not found"));
.orElseThrow(() -> new PaymentNotFoundException("Payment not found"));
if ("payment.succeeded".equals(eventType)) {
payment.setStatus(PaymentStatus.SUCCEEDED);