Skip to content

Commit

Permalink
debug
Browse files Browse the repository at this point in the history
  • Loading branch information
gustavofg1pontes committed Oct 7, 2024
1 parent a12baa5 commit bb904ab
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,9 @@ public ResponseEntity<String> createUpsertEnrollment(CreateUpsertEnrollmentReque

@Override
public ResponseEntity<Void> 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);
Expand All @@ -104,7 +106,7 @@ public ResponseEntity<Void> 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();
}
}

0 comments on commit bb904ab

Please sign in to comment.