Now unified receipt is an des ordered array so take the latest receipt only

This commit is contained in:
Rodrigo Gonzalez 2023-03-18 16:48:29 -03:00
parent e55e7aa66f
commit dacd98b510

View File

@ -86,7 +86,7 @@ class NotificationPayload
}
$instance->latestExpiredReceipt = $request->input('unified_receipt.latest_expired_receipt');
if ($request->has('unified_receipt.latest_expired_receipt_info')) {
$instance->latestExpiredReceiptInfo = Receipt::createFromArray($request->input('unified_receipt.latest_expired_receipt_info'));
$instance->latestExpiredReceiptInfo = Receipt::createFromArray($request->input('unified_receipt.latest_expired_receipt_info')[0]);
} else {
$instance->latestExpiredReceiptInfo = null;
}