From 78bc9401cbfffb12ab21babaed120ebe504ba939 Mon Sep 17 00:00:00 2001 From: Azhur Viano -Development Date: Wed, 25 Mar 2020 11:39:45 -0400 Subject: [PATCH] Change sample using sftp to not run if prelive is down --- samples/other/src/main/java/RfrLitleExample.java | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/samples/other/src/main/java/RfrLitleExample.java b/samples/other/src/main/java/RfrLitleExample.java index 9ad304a2..951da4cb 100755 --- a/samples/other/src/main/java/RfrLitleExample.java +++ b/samples/other/src/main/java/RfrLitleExample.java @@ -5,6 +5,12 @@ import java.util.Calendar; public class RfrLitleExample { public static void main(String[] args) { + String preliveStatus = System.getenv("preliveStatus"); + + if(preliveStatus != null && preliveStatus.equalsIgnoreCase("down")){ + return; + } + String merchantId = "0180"; String requestFileName = "litleSdk-testRFRFile-fileConfigSFTP.xml"; RFRRequest rfrRequest = new RFRRequest();