forked from LiveCarta/PayPal-PHP-Server-SDK
* Automated commit message * Automated commit message * add changelog --------- Co-authored-by: PayPalServerSDKs <server-sdks@paypal.com>
1.3 KiB
1.3 KiB
Cart Information
The cart information.
Structure
CartInformation
Fields
| Name | Type | Tags | Description | Getter | Setter |
|---|---|---|---|---|---|
itemDetails |
?(ItemDetails[]) |
Optional | An array of item details. Constraints: Minimum Items: 1, Maximum Items: 32767 |
getItemDetails(): ?array | setItemDetails(?array itemDetails): void |
taxInclusive |
?bool |
Optional | Indicates whether the item amount or the shipping amount already includes tax. Default: false |
getTaxInclusive(): ?bool | setTaxInclusive(?bool taxInclusive): void |
paypalInvoiceId |
?string |
Optional | The ID of the invoice. Appears for only PayPal-generated invoices. Constraints: Minimum Length: 1, Maximum Length: 127, Pattern: ^[a-zA-Z0-9_'\-., ":;\!?]*$ |
getPaypalInvoiceId(): ?string | setPaypalInvoiceId(?string paypalInvoiceId): void |
Example (as JSON)
{
"tax_inclusive": false,
"item_details": [
{
"item_code": "item_code0",
"item_name": "item_name8",
"item_description": "item_description4",
"item_options": "item_options2",
"item_quantity": "item_quantity2"
}
],
"paypal_invoice_id": "paypal_invoice_id2"
}