Skip to content

Commit

Permalink
[ECP-8717] Get order from payment object (#2436)
Browse files Browse the repository at this point in the history
  • Loading branch information
candemiralp authored Jan 24, 2024
1 parent 7bbd2dd commit 0884073
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Gateway/Request/GiftcardDataBuilder.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,8 @@ public function build(array $buildSubject): array
{
/** @var PaymentDataObject $paymentDataObject */
$paymentDataObject = SubjectReader::readPayment($buildSubject);
$order = $paymentDataObject->getOrder();
$payment = $paymentDataObject->getPayment();
$order = $payment->getOrder();

$request = [];

Expand Down

0 comments on commit 0884073

Please sign in to comment.