Use an object based on PaymentDetails
to represent payment details that appear in the payment sheet when the customer interacts with Meta Pay.
PaymentDetails
provides data for a PaymentRequest, a PaymentDetailsChangedEvent, or a PaymentDetailsUpdate.
When PaymentDetails
is part of a
PaymentDetailsChangedEvent, certain address fields are redacted to protect customer privacy. Only fields required for
calculating tax and shipping are provided.
Property | Type | Description | Required |
---|---|---|---|
| The total amount for the payment. | Yes | |
| Array<SummaryPaymentItem> | Additional summary items, such as tax or shipping costs. | No |
| Array<PaymentItem> | Details of the transaction, such as per-item costs. | No |
| Array<Offer> | Offers entered by the customer which the
merchant can use to apply discounts to the cost. | No |
| The billing address for the payment method. Will be provided when | No | |
| The shipping address for the transaction. Will be provided when | No | |
[deprecated]
| Array<ShippingOption> | Shipping options that appear to the customer. NOTE: This field is now deprecated. Please use | No |
| Array<FulfillmentOption> | Fulfillment options that appear to the customer. | No |
[deprecated]
| string | The ID of the ShippingOption. This option should appear selected in the user interface unless the customer changes it. NOTE: This field is now deprecated. Please use | No |
| string | The ID of the FulfillmentOption. This option should appear selected in the user interface unless the customer changes it. | No |
| An object representing the information related to a pickup order. | No |