Skip to content

Commit

Permalink
AppStoreServerAPIReceiptExtender: merge strategy changed, now receipt…
Browse files Browse the repository at this point in the history
…'s data won't be overwritten by API response
  • Loading branch information
pkotets committed Aug 25, 2023
1 parent edb2445 commit 81c6373
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
"php"
],
"homepage": "https://github.com/readdle/app-store-receipt-verification",
"version": "1.2.0",
"version": "1.3.0",
"autoload": {
"psr-4": {
"Readdle\\AppStoreReceiptVerification\\": "src/"
Expand Down
2 changes: 1 addition & 1 deletion src/ReceiptExtender/AppStoreServerAPIReceiptExtender.php
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ private static function extendReceiptTransactionInfo(array &$receipt, array $api
continue;
}

$transaction = array_merge($transaction, $diff);
$transaction = array_merge($diff, $transaction);
$updated[$subject] = true;
break;
}
Expand Down

0 comments on commit 81c6373

Please sign in to comment.