تم تحديث هذا المستند.
لم تكتمل الترجمة إلى اللغة ‏العربية‏ حتى الآن.
تاريخ تحديث المصدر باللغة الإنجليزية: ‏١٤‏/٠٢‏/٢٠٢٣
تاريخ تحديث اللغة ‏العربية‏: ‏٠٥‏/٠٣‏/٢٠٢٢

PaymentItem

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.

Properties

PropertyTypeDescriptionRequired

amount

PaymentCurrencyAmount

The monetary value of the item.

Yes

label

string

Information about the item, such as the product name.

Yes

secondaryLabel

string

Additional information about the item, such as size and color.

No

quantity

number

The quantity of the item. When quantity is specified, amount is the total for the item, not the per-item cost.

No

imageURI

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

contentId

string

An optional contentId associated with the item being purchased. See content_ids in the Conversions API documentation for more details.

No

contentType

string

An optional content type associated with the item being purchased. Should be set to product or product_group. See content_type in the Conversions API documentation for more details.

No

contentCategory

string

An optional contentId associated with the item being purchased. See content_category in the Conversions API documentation for more details.

No