Skip to content

Commit

Permalink
OctopusDeploy release: 2.3.3
Browse files Browse the repository at this point in the history
  • Loading branch information
securesubmit-buildmaster committed May 27, 2021
1 parent bed955a commit f116e18
Show file tree
Hide file tree
Showing 3 changed files with 37 additions and 16 deletions.
19 changes: 19 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,25 @@

#### Enhancements:

- enhance GP-ECOM error handling
- update GP-ECOM unit test for APPLE PAY and GOOGLE PAY

## v2.2.16 (05/20/2021)

#### Enhancements:

Add GP-ECOM dynamic descriptor functionaSlity

## v2.2.15 (05/18/2021)

#### Bug Fixes:

- GP-ECOM fix 3DS recurring data fields: recurring expiry date format and max_number_of_instalments

## v2.2.14 (05/11/2021)

#### Enhancements:

- Update GP-API to 2021-03-22 version
- 3DS Status Mapping - Missed Mapping and Revise some mappings
- Update ACS simulator for 3DS2 to use values from initiate response for the form fields name required in the POST redirect
Expand Down
6 changes: 3 additions & 3 deletions src/Gateways/RestGateway.php
Original file line number Diff line number Diff line change
Expand Up @@ -66,11 +66,11 @@ protected function doTransaction(
}
throw $gatewayException;
} else {
$errMsgProperty = ['error_description', 'message' , 'eos_reason'];
$errMsgProperty = ['error_description', 'error_detail', 'message' , 'eos_reason'];
$errorMessage = '';
foreach ($errMsgProperty as $propertyName) {
if (property_exists($error, $propertyName)) {
$errorMessage = $error->{$propertyName};
break;
$errorMessage .= $error->{$propertyName} . ' ';
}
}
throw new GatewayException(
Expand Down
28 changes: 15 additions & 13 deletions test/Integration/Gateways/RealexConnector/ApiTestCase.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
namespace GlobalPayments\Api\Test\Integration\Gateways\RealexConnector;

use GlobalPayments\Api\PaymentMethods\CreditCardData;
use GlobalPayments\Api\ServiceConfigs\Gateways\GpEcomConfig;
use GlobalPayments\Api\ServicesConfig;
use GlobalPayments\Api\ServicesContainer;
use GlobalPayments\Api\Entities\Address;
Expand Down Expand Up @@ -550,13 +551,13 @@ public function testdccAuthDataSubmission()
public function testauthMobileGooglePay()
{
try {
$config = new ServicesConfig();
$config = new GpEcomConfig();
$config->merchantId = 'heartlandgpsandbox';
$config->accountId = 'apitest';
$config->sharedSecret = 'secret';
$config->serviceUrl = 'https://api.sandbox.realexpayments.com/epage-remote.cgi';

ServicesContainer::configure($config);
ServicesContainer::configureService($config);

// create the card object
$card = new CreditCardData();
Expand Down Expand Up @@ -591,22 +592,23 @@ public function testauthMobileGooglePay()
public function testauthMobileApplePay()
{
try {
$config = new ServicesConfig();
$config = new GpEcomConfig();
$config->merchantId = 'heartlandgpsandbox';
$config->accountId = 'apitest';
$config->sharedSecret = 'secret';
$config->serviceUrl = 'https://api.sandbox.realexpayments.com/epage-remote.cgi';

ServicesContainer::configure($config);
ServicesContainer::configureService($config);

// create the card object
$card = new CreditCardData();
$card->token = '{"version":"EC_v1","data":"dvMNzlcy6WNB","header":{"ephemeralPublicKey":"MFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAEWdNhNAHy9kO2Kol33kIh7k6wh6E","transactionId":"fd88874954acdb299c285f95a3202ad1f330d3fd4ebc22a864398684198644c3","publicKeyHash":"h7WnNVz2gmpTSkHqETOWsskFPLSj31e3sPTS2cBxgrk"}}';
$card->mobileType = EncyptedMobileType::APPLE_PAY;

// process an auto-settle authorization
$response = $card->charge()
$response = $card->charge(19.99)
->withModifier(TransactionModifier::ENCRYPTED_MOBILE)
->withCurrency('EUR')
->execute();

$responseCode = $response->responseCode; // 00 == Success
Expand Down Expand Up @@ -634,13 +636,13 @@ public function testauthMobileApplePay()
*/
public function testauthMobileWithoutToken()
{
$config = new ServicesConfig();
$config = new GpEcomConfig();
$config->merchantId = 'heartlandgpsandbox';
$config->accountId = 'apitest';
$config->sharedSecret = 'secret';
$config->serviceUrl = 'https://api.sandbox.realexpayments.com/epage-remote.cgi';

ServicesContainer::configure($config);
ServicesContainer::configureService($config);

// create the card object
$card = new CreditCardData();
Expand All @@ -660,13 +662,13 @@ public function testauthMobileWithoutToken()
*/
public function testauthMobileWithoutType()
{
$config = new ServicesConfig();
$config = new GpEcomConfig();
$config->merchantId = 'heartlandgpsandbox';
$config->accountId = 'apitest';
$config->sharedSecret = 'secret';
$config->serviceUrl = 'https://api.sandbox.realexpayments.com/epage-remote.cgi';

ServicesContainer::configure($config);
ServicesContainer::configureService($config);

// create the card object
$card = new CreditCardData();
Expand All @@ -686,13 +688,13 @@ public function testauthMobileWithoutType()
*/
public function testauthMobileWithoutAmount()
{
$config = new ServicesConfig();
$config = new GpEcomConfig();
$config->merchantId = 'heartlandgpsandbox';
$config->accountId = 'apitest';
$config->sharedSecret = 'secret';
$config->serviceUrl = 'https://api.sandbox.realexpayments.com/epage-remote.cgi';

ServicesContainer::configure($config);
ServicesContainer::configureService($config);

// create the card object
$card = new CreditCardData();
Expand All @@ -713,13 +715,13 @@ public function testauthMobileWithoutAmount()
*/
public function testauthMobileWithoutCurrency()
{
$config = new ServicesConfig();
$config = new GpEcomConfig();
$config->merchantId = 'heartlandgpsandbox';
$config->accountId = 'apitest';
$config->sharedSecret = 'secret';
$config->serviceUrl = 'https://api.sandbox.realexpayments.com/epage-remote.cgi';

ServicesContainer::configure($config);
ServicesContainer::configureService($config);

// create the card object
$card = new CreditCardData();
Expand Down

0 comments on commit f116e18

Please sign in to comment.