Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [3.4.6] - 2025-01-14
### Added
- Include `AuthenticationResult` in `Transaction` class.

## [3.4.5] - 2024-11-05
### Added
- Include `MerchantErrorMessage`, `CardHolderErrorMessage`, `CardHolderErrorMessage` and `CardHolderErrorMessage` in `CaptureReservationResponse` class.
Expand Down
2 changes: 1 addition & 1 deletion src/AbstractApi.php
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ abstract class AbstractApi
/**
* PHP API version
*/
const PHP_API_VERSION = '3.4.5';
const PHP_API_VERSION = '3.4.6';

/**
* Event dispatcher
Expand Down
56 changes: 56 additions & 0 deletions src/Response/Embeds/AuthenticationResult.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
<?php
/**
* Copyright (c) 2025 AltaPay
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is furnished
* to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in all
* copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
* THE SOFTWARE.
*/

namespace Altapay\Response\Embeds;

use Altapay\Response\AbstractResponse;

class AuthenticationResult extends AbstractResponse
{
/**
* @var "CHALLENGE"|"FRICTIONLESS"|"UNKNOWN"
*/
public $Flow;

/**
* @var "MERCHANT"|"ISSUER"|"UNKNOWN"
*/
public $Liability;

/**
* @var "AUTHENTICATED"|"ACCEPTED"|"NOT_AUTHENTICATED"|"FAILED"|"REJECTED"|"INFORMATIONAL"|"UNKNOWN"
*/
public $Result;

/**
* Version in the format X.X.X (e.g. 1.0.0, 2.1.0, 2.2.3).
*
* @var string
*/
public $Version;

/**
* @var "3DSECURE"
*/
public $Type;
}
9 changes: 9 additions & 0 deletions src/Response/Embeds/Transaction.php
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,10 @@ class Transaction extends AbstractResponse
'CardInformation' => [
'class' => CardInformation::class,
'array' => false
],
'AuthenticationResult' => [
'class' => AuthenticationResult::class,
'array' => false
]
];

Expand Down Expand Up @@ -285,6 +289,11 @@ class Transaction extends AbstractResponse
*/
public $InvoiceOrderInfo;

/**
* @var AuthenticationResult
*/
public $AuthenticationResult;

/**
* @param string $IsTokenized
*
Expand Down
Loading