public void handle()

in service/src/main/java/org/apache/fineract/cn/stellarbridge/service/internal/command/handler/StellarPaymentCommandHandler.java [34:50]


  public void handle(final StellarPaymentCommand command) throws InterruptedException {

    final Optional<BridgeConfigurationEntity> accountBridge =
        bridgeConfigurationRepository.findByTenantIdentifier(command.getTenantIdentifier());

    if (accountBridge.isPresent())
    {
      final String transactionIdentifier = accountingAdapter.acceptIncomingPayment(
          accountBridge.get(), command.getAmount(), command.getAssetCode(),
          command.getTransactionDate());

      eventHelper.sendEvent(
          EventConstants.STELLAR_PAYMENT_PROCESSED,
          command.getTenantIdentifier(),
          transactionIdentifier);
    }
  }