Use an object based on PaymentItem
to represent a line item in a payment transaction, such as per-item costs. The data in PaymentItem
appears to the customer in the payment sheet.
PaymentItem
and SummaryPaymentItem provide data for PaymentDetails.
Property | Type | Description | Required |
---|---|---|---|
| The monetary value of the item. | Yes | |
| string | Information about the item, such as the product name. | Yes |
| string | Additional information about the item, such as size and color. | No |
| number | The quantity of the item. When quantity is specified, | No |
| string | The URI of an image to display for the item. For example, if the customer is buying a product, a thumbnail image of the product. PNG and JPEG formats are supported. | No |
| string | An optional contentId associated with the item being purchased. See content_ids in the Conversions API documentation for more details. | No |
| string | An optional content type associated with the item being purchased. Should be set to | No |
| string | An optional contentId associated with the item being purchased. See content_category in the Conversions API documentation for more details. | No |