New payload uses an array for receipt info
This commit is contained in:
parent
1b118cc2cf
commit
4178d55145
@ -80,7 +80,9 @@ class NotificationPayload
|
||||
|
||||
$instance->latestReceipt = $request->input('unified_receipt.latest_receipt');
|
||||
if ($request->has('unified_receipt.latest_receipt_info')) {
|
||||
$instance->latestReceiptInfo = Receipt::createFromArray($request->input('unified_receipt.latest_receipt_info'));
|
||||
if (count($request->input('unified_receipt.latest_receipt_info')) > 0) {
|
||||
$instance->latestReceiptInfo = Receipt::createFromArray($request->input('unified_receipt.latest_receipt_info')[0]);
|
||||
}
|
||||
} else {
|
||||
$instance->latestReceiptInfo = null;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user