Skip to content

Commit

Permalink
OctopusDeploy release: 12.0.5
Browse files Browse the repository at this point in the history
  • Loading branch information
securesubmit-buildmaster committed Jun 6, 2024
1 parent 836cc93 commit aee375b
Show file tree
Hide file tree
Showing 16 changed files with 138 additions and 350 deletions.
8 changes: 7 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,13 @@

# Changelog

## Latest Version - v12.0.4 (05/30/24)
## Latest Version - v12.0.5 (06/07/24)
### Bug Fixes:
- [PAX] Corrected "partial auth" response handling
- [GP-ECOM] Add HPP additional field "HPP_REMOVE_SHIPPING"
- [GP-API] Unit tests enhancements

## v12.0.4 (05/30/24)
### Enhancements:
- [GP-ECOM] Added additional fee to a card transaction (surchargeamount).
- [GP-API] Add mapping for "message_received " and "message_sent " on get a Single Action response
Expand Down
7 changes: 6 additions & 1 deletion examples/gp-ecom/hpp/example.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@
<input type="checkbox" id="capture_address" name="capture_address">
<label for="capture_address">Enable Capture billing and shipping capability</label>
</div>
<div>
<input type="checkbox" id="remove_shipping" name="remove_shipping">
<label for="remove_shipping">Show only the billing address and payment forms.</label>
</div>
<div>
<input type="checkbox" id="not_return_address" name="not_return_address">
<label for="not_return_address">Do not return address information in HPP response</label>
Expand All @@ -19,7 +23,8 @@
$("#payButtonId").click(function() {
const data = {
captureAddress: document.getElementById("capture_address").checked,
notReturnAddress: document.getElementById("not_return_address").checked
notReturnAddress: document.getElementById("not_return_address").checked,
removeShipping: document.getElementById("remove_shipping").checked
};
console.log(data);
$.getJSON("get-json.php", data, function (jsonFromRequestEndpoint) {
Expand Down
3 changes: 3 additions & 0 deletions examples/gp-ecom/hpp/get-json.php
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,9 @@
if (isset($_REQUEST['notReturnAddress'])) {
$hostedPaymentData->notReturnAddress = filter_var($_REQUEST['notReturnAddress'], FILTER_VALIDATE_BOOLEAN);
}
if (isset($_REQUEST['removeShipping'])) {
$hostedPaymentData->removeShipping = filter_var($_REQUEST['removeShipping'], FILTER_VALIDATE_BOOLEAN);
}

$hostedPaymentData->customerCountry = 'DE';
$hostedPaymentData->customerFirstName = 'James';
Expand Down
2 changes: 1 addition & 1 deletion metadata.xml
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
<xml>
<releaseNumber>12.0.4</releaseNumber>
<releaseNumber>12.0.5</releaseNumber>
</xml>
2 changes: 2 additions & 0 deletions src/Entities/HostedPaymentData.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,8 @@ class HostedPaymentData
*/
public $notReturnAddress;

public ?bool $removeShipping = null;

/**
* Determines the challenge request preference for 3DS 2.0.
*
Expand Down
3 changes: 3 additions & 0 deletions src/Entities/RecurringEntity.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

namespace GlobalPayments\Api\Entities;

use GlobalPayments\Api\Entities\Exceptions\GatewayException;
use GlobalPayments\Api\ServicesContainer;
use GlobalPayments\Api\Entities\Exceptions\ApiException;
use GlobalPayments\Api\Entities\Exceptions\UnsupportedTransactionException;
Expand Down Expand Up @@ -92,6 +93,8 @@ public function saveChanges($configName = 'default')
{
try {
return RecurringService::edit($this);
} catch (GatewayException $exception) {
throw $exception;
} catch (ApiException $exc) {
throw new ApiException('Update failed, see inner exception for more details', $exc);
}
Expand Down
3 changes: 3 additions & 0 deletions src/Gateways/GpEcomConnector.php
Original file line number Diff line number Diff line change
Expand Up @@ -385,6 +385,9 @@ public function serializeRequest(AuthorizationBuilder $builder)
if (isset($hostedPaymentData->notReturnAddress)) {
$this->setSerializeData('HPP_DO_NOT_RETURN_ADDRESS', $hostedPaymentData->notReturnAddress == true);
}
if (isset($hostedPaymentData->removeShipping)) {
$this->setSerializeData('HPP_REMOVE_SHIPPING', $hostedPaymentData->removeShipping === true);
}
}
if (isset($this->hostedPaymentConfig->cardStorageEnabled)) {
$this->setSerializeData('CARD_STORAGE_ENABLE', $this->hostedPaymentConfig->cardStorageEnabled ? '1' : '0');
Expand Down
2 changes: 1 addition & 1 deletion src/Terminals/PAX/Responses/PaxBaseResponse.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ public function parseResponse($messageReader)
public function checkResponse($acceptedCodes = null)
{
if ($acceptedCodes === null) {
$acceptedCodes = ["000000", "000100"];
$acceptedCodes = ["000000", "000100", "000002"];
}

if (!empty($this->deviceResponseText)) {
Expand Down
3 changes: 0 additions & 3 deletions test/Data/GpApi3DSTestCards.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,6 @@

class GpApi3DSTestCards
{
const CARDHOLDER_NOT_ENROLLED_V1 = "4917000000000087";
const CARDHOLDER_ENROLLED_V1 = "4012001037141112";

const CARD_AUTH_SUCCESSFUL_V2_1 = "4263970000005262";
const CARD_AUTH_SUCCESSFUL_NO_METHOD_URL_V2_1 = "4222000006724235";
const CARD_AUTH_ATTEMPTED_BUT_NOT_SUCCESSFUL_V2_1 = "4012001037167778";
Expand Down
279 changes: 0 additions & 279 deletions test/Integration/Gateways/GpApiConnector/GpApi3DS1Test.php

This file was deleted.

Loading

0 comments on commit aee375b

Please sign in to comment.