Skip to content

Commit 4ba4b7e

Browse files
authored
Merge pull request #1375 from PrestaShopCorp/fix/supplementary-data-to-purchase-unit
[PAYSHIP-3550] Move supplementary data to purchase unit
2 parents 88d9084 + c0b6856 commit 4ba4b7e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/src/Order/Builder/OrderPayloadBuilder.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ private function buildOptionalPayload(bool $isFullPayload): array
177177

178178
if ($this->isCard) {
179179
$optionalPayload[] = $this->buildCardPaymentSource();
180-
$optionalPayload[] = $this->buildSupplementaryData();
180+
$this->payload['purchase_units'][0] = array_merge($this->payload['purchase_units'][0], $this->buildSupplementaryData());
181181
}
182182

183183
if ($isFullPayload) {

0 commit comments

Comments
 (0)