Skip to content

Updates for Magento#116

Open
adumont-payplug wants to merge 1 commit into
developfrom
hosted-fields-magento
Open

Updates for Magento#116
adumont-payplug wants to merge 1 commit into
developfrom
hosted-fields-magento

Conversation

@adumont-payplug

Copy link
Copy Markdown
Contributor

No description provided.

@esprit-dev esprit-dev force-pushed the hosted-fields-magento branch 7 times, most recently from d139b5b to 64174d4 Compare May 25, 2026 09:32
@esprit-dev esprit-dev force-pushed the hosted-fields-magento branch from 64174d4 to 29469f2 Compare June 8, 2026 09:22
@adumont-payplug adumont-payplug marked this pull request as ready for review June 15, 2026 08:03
@esprit-dev esprit-dev force-pushed the hosted-fields-magento branch from 29469f2 to d77d723 Compare June 15, 2026 13:37
@adumont-payplug adumont-payplug force-pushed the hosted-fields-magento branch from d77d723 to 4a52c28 Compare June 15, 2026 14:14
];

$captures = array_filter($data['DATA'], static function (array $row) {
$isCaptureTransaction = $row['OPERATIONTYPE'] === 'capture';

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
$isCaptureTransaction = $row['OPERATIONTYPE'] === 'capture';
$isCaptureTransaction = !empty($row['OPERATIONTYPE']) && $row['OPERATIONTYPE'] === 'capture';


$captures = array_filter($data['DATA'], static function (array $row) {
$isCaptureTransaction = $row['OPERATIONTYPE'] === 'capture';
$isSuccessTransaction = $row['EXECCODE'] === '0000';

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
$isSuccessTransaction = $row['EXECCODE'] === '0000';
$isSuccessTransaction = !empty($row['EXECCODE']) && $row['EXECCODE'] === '0000';

];
public $billing = [];
public $shipping = [];
public $captureTransactionIds = [];

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

garder le snake_case comme les autres propriétés capture_transaction_ids

public $currency;
public $created_at;
public $description;
public $is_paid;

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

public $is_paid = false;
Pour une autorisation pas encore capturée, is_paid n'est jamais assigné et reste null. Les plugins qui testent === false pour détecter un échec ne matchent pas null.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants