diff --git a/infrastructure/src/main/java/br/com/ifsp/tickets/infra/api/controllers/EnrollmentController.java b/infrastructure/src/main/java/br/com/ifsp/tickets/infra/api/controllers/EnrollmentController.java index 124bea6..6116312 100644 --- a/infrastructure/src/main/java/br/com/ifsp/tickets/infra/api/controllers/EnrollmentController.java +++ b/infrastructure/src/main/java/br/com/ifsp/tickets/infra/api/controllers/EnrollmentController.java @@ -89,7 +89,9 @@ public ResponseEntity createUpsertEnrollment(CreateUpsertEnrollmentReque @Override public ResponseEntity webhook(CreatePaymentRequest request) { + System.out.println(request.data().id()); PaymentOutput p = this.paymentService.getPayment(request.data().id()); + System.out.println(p.externalReference()); GetUpsertEnrollmentInput in = new GetUpsertEnrollmentInput(p.externalReference()); GetUpsertEnrollmentOutput output = this.enrollmentService.getUpsertEnrollment(in); @@ -104,7 +106,7 @@ public ResponseEntity webhook(CreatePaymentRequest request) { output.ticketID() ); CreateEnrollmentOutput out = this.enrollmentService.create(input); - + System.out.println(out); return ResponseEntity.created(URI.create("/v1/enrollment/" + out.enrollmentId())).build(); } }