Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/SL-249/transaction-status' into …
Browse files Browse the repository at this point in the history
…e2e-actions

merge latest changes
  • Loading branch information
Justas Vaitkus authored and Justas Vaitkus committed Aug 7, 2024
2 parents 9dc5323 + 2e5dc6f commit ba0713e
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/Entity/SaferPayAssert.php
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ class SaferPayAssert extends ObjectModel
'primary' => 'id_saferpay_assert',
'fields' => [
'id_saferpay_order' => ['type' => self::TYPE_INT, 'validate' => 'isInt'],
'amount' => ['type' => self::TYPE_STRING, 'validate' => 'isString'],
'amount' => ['type' => self::TYPE_INT, 'validate' => 'isInt'],
'status' => ['type' => self::TYPE_STRING, 'validate' => 'isString'],
'exp_year' => ['type' => self::TYPE_INT, 'validate' => 'isInt'],
'exp_month' => ['type' => self::TYPE_INT, 'validate' => 'isInt'],
Expand Down
2 changes: 1 addition & 1 deletion src/EntityBuilder/SaferPayAssertBuilder.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ public function createAssert(AssertBody $assertBody, $saferPayOrderId)
$assert = new SaferPayAssert();

$assert->id_saferpay_order = $saferPayOrderId;
$assert->amount = $assertBody->getTransaction()->getAmount()->getValue();
$assert->amount = (int) $assertBody->getTransaction()->getAmount()->getValue();
$assert->status = $assertBody->getTransaction()->getStatus();
$assert->authorized = 1; //If creating assert, it must be authorized.

Expand Down
2 changes: 1 addition & 1 deletion src/EntityBuilder/SaferPayAssertRefundBuilder.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ public function createAssertRefund(AssertRefundBody $assertBody, $saferPayOrderI
$assert = new SaferPayAssert();

$assert->id_saferpay_order = $saferPayOrderId;
$assert->amount = $assertBody->getTransaction()->getAmount()->getValue();
$assert->amount = (int) $assertBody->getTransaction()->getAmount()->getValue();
$assert->status = $assertBody->getTransaction()->getStatus();
$assert->authorized = 1; //If creating assert, it must be authorized.

Expand Down

0 comments on commit ba0713e

Please sign in to comment.