in service/src/main/java/org/apache/fineract/cn/stellarbridge/service/internal/command/handler/FineractPaymentCommandHandler.java [51:74]
private void pay(
final FineractPaymentCommand command,
final BridgeConfigurationEntity bridgeConfigurationEntity)
{
final StellarAccountId targetAccountId;
targetAccountId = stellarAddressResolver.getAccountIdOfStellarAccount(
StellarAddress.forTenant(command.getTargetAccount(), command.getSinkDomain()));
final char[] decodedStellarPrivateKey =
bridgeConfigurationEntity.getStellarAccountPrivateKey().toCharArray();
horizonServerUtilities.findPathPay(
targetAccountId,
command.getAmount(), command.getAssetCode(),
decodedStellarPrivateKey);
accountingAdapter.tellFineractPaymentSucceeded(
bridgeConfigurationEntity.getFineractOutgoingLedger(),
bridgeConfigurationEntity.getFineractStellerLedger(),
command.getAssetCode(),
command.getAmount());
eventHelper.sendEvent(EventConstants.FINERACT_PAYMENT_PROCESSED, command.getTenantIdentifier(), command.getTransactionIdentifier());
}