Backend/Microservices/PaymentService/server/src/Workers/index.js
/**
    * Method to get messages from the Order Queue.
    * @private
    */
Method to get messages from the Order Queue.
@private
Method to get messages from the Order Queue . @private
_getMessagesFromOrderQueue() {
      scheduler.scheduleJob('0/1 * * * *', () => {
         orderPaymentProcessor.processPayment();
      });
   }
_getMessagesFromOrderQueue ( ) { scheduler . scheduleJob ( '0/1 * * * *' , ( ) => { orderPaymentProcessor . processPayment ( ) ; } ) ; }
Method to get messages from the Order Queue.
Method to get messages from the Order Queue .