Skip to content

Commit

Permalink
remove testing todo
Browse files Browse the repository at this point in the history
  • Loading branch information
zuk3975 committed Jun 26, 2024
1 parent f35ac76 commit a7ed7d4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
4 changes: 1 addition & 3 deletions src/DTO/Request/Initialize/InitializeRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -177,9 +177,7 @@ public function getAsArray()
],
'Payment' => [
'Amount' => [
//@todo: don't forget this. Its for testing/debugging. https://docs.saferpay.com/home/integration-guide/testing-and-go-live#account-to-account-payments
// 'Value' => $this->payment->getValue(),
'Value' => 4030030,
'Value' => $this->payment->getValue(),
'CurrencyCode' => $this->payment->getCurrencyCode(),
],
'OrderId' => $this->payment->getOrderReference(),
Expand Down
3 changes: 1 addition & 2 deletions src/EntityBuilder/SaferPayOrderBuilder.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,7 @@

class SaferPayOrderBuilder
{
//TODO to pass $body as InitializeBody.
public function create($body, $cartId, $customerId, $isTransaction, $status = null)
public function create($body, $cartId, $customerId, $isTransaction)
{
if (method_exists('Order', 'getIdByCartId')) {
$orderId = Order::getIdByCartId($cartId);
Expand Down

0 comments on commit a7ed7d4

Please sign in to comment.