From 29eb98c8094f623b3b9ba6e1b0333a0fe4e98015 Mon Sep 17 00:00:00 2001 From: Mark Wells Date: Wed, 12 Aug 2015 11:51:43 -0700 Subject: [PATCH] update URL again --- debian/changelog | 4 ++-- lib/Business/OnlinePayment/FirstDataGlobalGateway.pm | 8 +++++++- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/debian/changelog b/debian/changelog index 06932fe..d037678 100644 --- a/debian/changelog +++ b/debian/changelog @@ -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 Tue, 11 Aug 2015 19:33:48 -0700 + -- Mark Wells Wed, 12 Aug 2015 11:51:54 -0700 libbusiness-onlinepayment-firstdataglobalgateway-perl (0.01-1) unstable; urgency=low diff --git a/lib/Business/OnlinePayment/FirstDataGlobalGateway.pm b/lib/Business/OnlinePayment/FirstDataGlobalGateway.pm index c01c21d..03517cb 100644 --- a/lib/Business/OnlinePayment/FirstDataGlobalGateway.pm +++ b/lib/Business/OnlinePayment/FirstDataGlobalGateway.pm @@ -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"; -- 2.11.0