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.5.3] - 2025-08-12
### Added
- Rename `AuthenticationResult` property to `Authentication` in `Transaction` class.

## [3.5.2] - 2025-08-08
### Added
- Correct `Transaction` `CreditCardExpiry` type.
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.5.2';
const PHP_API_VERSION = '3.5.3';

/**
* Event dispatcher
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@

use Altapay\Response\AbstractResponse;

class AuthenticationResult extends AbstractResponse
class Authentication extends AbstractResponse
{
/**
* @var "CHALLENGE"|"FRICTIONLESS"|"UNKNOWN"
Expand All @@ -50,7 +50,7 @@ class AuthenticationResult extends AbstractResponse
public $Version;

/**
* @var "3DSECURE"
* @var "3DSECURE"|"UNKNOWN"
*/
public $Type;
}
12 changes: 9 additions & 3 deletions src/Response/Embeds/Transaction.php
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,8 @@ class Transaction extends AbstractResponse
'class' => CardInformation::class,
'array' => false
],
'AuthenticationResult' => [
'class' => AuthenticationResult::class,
'Authentication' => [
'class' => Authentication::class,
'array' => false
]
];
Expand Down Expand Up @@ -290,10 +290,16 @@ class Transaction extends AbstractResponse
public $InvoiceOrderInfo;

/**
* @var AuthenticationResult
* @var Authentication
* @deprecated Use $Authentication instead.
*/
public $AuthenticationResult;

/**
* @var Authentication
*/
public $Authentication;

/**
* @var DateTime
*/
Expand Down