Compare commits

..

No commits in common. "1b118cc2cf76ce80a0901f1588f653cc39e8eed6" and "e55e7aa66feda5517e227611d713055e9934c3c6" have entirely different histories.

View File

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