update URL again
authorMark Wells <mark@freeside.biz>
Wed, 12 Aug 2015 18:51:43 +0000 (11:51 -0700)
committerMark Wells <mark@freeside.biz>
Wed, 12 Aug 2015 18:52:07 +0000 (11:52 -0700)
debian/changelog
lib/Business/OnlinePayment/FirstDataGlobalGateway.pm

index 06932fe..d037678 100644 (file)
@@ -1,8 +1,8 @@
-libbusiness-onlinepayment-firstdataglobalgateway-perl (0.01-2) UNRELEASED; urgency=medium
+libbusiness-onlinepayment-firstdataglobalgateway-perl (0.01-3) unstable; urgency=medium
 
   * Update service URL. 
 
- -- Mark Wells <mark@freeside.biz>  Tue, 11 Aug 2015 19:33:48 -0700
+ -- Mark Wells <mark@freeside.biz>  Wed, 12 Aug 2015 11:51:54 -0700
 
 libbusiness-onlinepayment-firstdataglobalgateway-perl (0.01-1) unstable; urgency=low
 
index c01c21d..03517cb 100644 (file)
@@ -173,7 +173,13 @@ sub submit {
   }
 
   my $base_uri;
-  $base_uri = 'https://api.demo.globalgatewaye4.firstdata.com/transaction';
+  if ( $self->test_transaction ) {
+    $base_uri =
+      'https://api.demo.globalgatewaye4.firstdata.com/transaction';
+  } else {
+    $base_uri =
+      'https://api.globalgatewaye4.firstdata.com/transaction';
+  }
 
   my $proxy = "$base_uri/v11";