updating hot logic for zesa
This commit is contained in:
@@ -91,7 +91,7 @@ public class HotRechargeIntegrationProcessor implements TransactionProcessorInte
|
||||
|
||||
// if provider is zesa, update customer token in creditVoucher field
|
||||
String providerId = providerService.getProviderId(transaction.getBillClientId());
|
||||
if(providerId.equals("41")) {
|
||||
if(providerId.equals("41") || providerId.equals("24")) {
|
||||
for (Map.Entry<String, Object> entry : rechargeData.entrySet()) {
|
||||
if (entry.getKey().equalsIgnoreCase("Token")) {
|
||||
transaction.setCreditVoucher(entry.getValue().toString());
|
||||
@@ -173,7 +173,7 @@ public class HotRechargeIntegrationProcessor implements TransactionProcessorInte
|
||||
request.put("CustomerSMS", "%COMPANYNAME% topped up your account with $%AMOUNT%.");
|
||||
|
||||
// do this for zesa only
|
||||
if(providerId.equals("41")) {
|
||||
if(providerId.equals("41") || providerId.equals("24")) {
|
||||
// override sms for zesa
|
||||
request.put("CustomerSMS", "A ZETDC token was purchased for " +
|
||||
"%ACCOUNTNAME% (%METERNUMBER%) that resulted in %KWH% units.");
|
||||
|
||||
Reference in New Issue
Block a user