PATH:
home
/
lab2454c
/
tripvare.com
/
vendor
/
academe
/
authorizenet-objects
/
src
/
Request
/
Collections
<?php namespace Academe\AuthorizeNet\Request\Collections; /** * */ use Academe\AuthorizeNet\AbstractCollection; use Academe\AuthorizeNet\Request\Model\LineItem; class LineItems extends AbstractCollection { protected function hasExpectedStrictType($item) { // Make sure the item is the correct type, and is not empty. return $item instanceof LineItem && $item->hasAny(); } /** * The array of lineItems needs to be wrapped by a single lineItem element. */ public function jsonSerialize() { $data = parent::jsonSerialize(); return ['lineItem' => $data]; } }
[-] TransactionSettings.php
[edit]
[-] HostedPaymentSettings.php
[edit]
[-] UserFields.php
[edit]
[+]
..
[-] LineItems.php
[edit]
[-] PaymentProfiles.php
[edit]