@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user