diff --git a/infrastructure/src/main/java/br/com/ifsp/tickets/infra/config/app/MercadoPagoConfiguration.java b/infrastructure/src/main/java/br/com/ifsp/tickets/infra/config/app/MercadoPagoConfiguration.java index b5e0a6c..41a641d 100644 --- a/infrastructure/src/main/java/br/com/ifsp/tickets/infra/config/app/MercadoPagoConfiguration.java +++ b/infrastructure/src/main/java/br/com/ifsp/tickets/infra/config/app/MercadoPagoConfiguration.java @@ -31,6 +31,7 @@ public void initialize() { @Bean public PaymentService preferenceService() { + System.out.println("AAAAAAAAAAAAAAAAAAAA: " + this.mercadoPagoAccessToken); return PaymentServiceFactory.create(ticketGateway, ticketSaleGateway, paymentGateway); } } diff --git a/infrastructure/src/main/java/br/com/ifsp/tickets/infra/contexts/event/sale/payment/persistence/PaymentJpaEntity.java b/infrastructure/src/main/java/br/com/ifsp/tickets/infra/contexts/event/sale/payment/persistence/PaymentJpaEntity.java index 1f74c28..0772b08 100644 --- a/infrastructure/src/main/java/br/com/ifsp/tickets/infra/contexts/event/sale/payment/persistence/PaymentJpaEntity.java +++ b/infrastructure/src/main/java/br/com/ifsp/tickets/infra/contexts/event/sale/payment/persistence/PaymentJpaEntity.java @@ -10,13 +10,14 @@ import lombok.Getter; import lombok.NoArgsConstructor; +import java.io.Serializable; import java.time.LocalDateTime; @Entity @Table(name = "payments") @NoArgsConstructor @Getter -public class PaymentJpaEntity { +public class PaymentJpaEntity implements Serializable { @Id @Column(name = "id", nullable = false, unique = true, updatable = false) private Long id;