Class PaymentConsumer

java.lang.Object
com.bank.payment.consumers.PaymentConsumer

@Component public class PaymentConsumer extends Object
Consumer for payment-related events received from auth microservice via RabbitMQ.

Listens to the payment queue and processes payment conclusion events, delegating the processing to the PaymentService.

  • Queue: ${broker.queue.sendPayment}
Since:
1.0.0
Version:
1.0.0, 06/26/2025
Author:
Fernando Cruz Cavina
  • Constructor Details

    • PaymentConsumer

      public PaymentConsumer()
  • Method Details

    • sendPix

      @RabbitListener(queues="${broker.queue.sendPayment}") public void sendPix(@Payload ConclusionPaymentDto paymentDto)
      Listens for confirmation of payment and sends the Pix payment.
      Parameters:
      paymentDto - the payment conclusion data received from the queue