Skip to content

Commit 86bade4

Browse files
authored
[ECP-9771-v9] Add application info to gift card requests (#3124)
1 parent dcf87b8 commit 86bade4

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

Gateway/Http/Client/TransactionPayment.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,8 @@ public function placeRequest(TransferInterface $transferObject): array
123123
$responseCollection['hasOnlyGiftCards'] = false;
124124

125125
try {
126+
$requestData['applicationInfo'] = $this->adyenHelper->buildApplicationInfo($client);
127+
126128
list($requestData, $giftcardResponseCollection) = $this->processGiftcards($requestData, $service);
127129

128130
/** @var array $responseCollection */
@@ -135,7 +137,6 @@ public function placeRequest(TransferInterface $transferObject): array
135137
}
136138
}
137139

138-
$requestData['applicationInfo'] = $this->adyenHelper->buildApplicationInfo($client);
139140
$paymentRequest = new PaymentRequest($requestData);
140141

141142
$idempotencyKey = $this->idempotencyHelper->generateIdempotencyKey(

Helper/GiftcardPayment.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
class GiftcardPayment
2020
{
2121
const VALID_GIFTCARD_REQUEST_FIELDS = [
22+
'applicationInfo',
2223
'merchantAccount',
2324
'shopperReference',
2425
'shopperEmail',

0 commit comments

Comments
 (0)