com.global.api.serviceConfigs.GatewayConnectorConfig Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of globalpayments-sdk Show documentation
Show all versions of globalpayments-sdk Show documentation
API for processing payments through Global Payments
package com.global.api.serviceConfigs;
import com.global.api.entities.Transaction;
import com.global.api.entities.enums.LogicProcessFlag;
import com.global.api.entities.enums.TerminalType;
import com.global.api.gateways.IPaymentGateway;
import com.global.api.gateways.NetworkGateway;
import com.global.api.gateways.events.IGatewayEventHandler;
import com.global.api.network.abstractions.IBatchProvider;
import com.global.api.network.abstractions.IStanProvider;
import com.global.api.network.enums.*;
import com.global.api.utils.IRequestEncoder;
import lombok.Setter;
import java.util.LinkedList;
@Setter
public abstract class GatewayConnectorConfig extends NetworkGateway implements IPaymentGateway {
protected AcceptorConfig acceptorConfig;
protected IBatchProvider batchProvider;
protected ConnectionType connectionType = ConnectionType.ISDN;
//protected IGatewayEventHandler gatewayEventHandler;
protected String merchantType;
protected MessageType messageType = MessageType.Heartland_POS_8583;
protected String nodeIdentification;
protected ProtocolType protocolType;
protected IStanProvider stanProvider;
protected String terminalId;
protected String uniqueDeviceId;
protected String binTerminalId;
protected String binTerminalType;
protected CardDataInputCapability inputCapabilityCode;
protected String softwareVersion;
protected LogicProcessFlag logicProcessFlag;
protected TerminalType terminalType;
protected String unitNumber;
protected NetworkProcessingFlag processingFlag;
protected String companyId;
protected CharacterSet characterSet = CharacterSet.ASCII;
protected LinkedList resentTransactions;
protected Transaction resentBatch;
protected IRequestEncoder requestEncoder;
protected String ewicMerchantId;
public void setBatchProvider(IBatchProvider batchProvider) {
this.batchProvider = batchProvider;
if(this.batchProvider != null && this.batchProvider.getRequestEncoder() != null) {
requestEncoder = batchProvider.getRequestEncoder();
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy