BTVenmoLineItem

@objcMembers
public class BTVenmoLineItem : NSObject

A Venmo line item to be displayed in the Venmo Paysheet.

Public Initializer

  • Initialize a BTVenmoLineItem

    Declaration

    Swift

    public init(
        quantity: Int,
        unitAmount: String,
        name: String,
        kind: BTVenmoLineItemKind,
        unitTaxAmount: String? = nil,
        itemDescription: String? = nil,
        productCode: String? = nil,
        url: URL? = nil
    )

    Parameters

    quantity

    Required. Number of units of the item purchased. Can include up to 4 decimal places. This value must be a whole number and can’t be negative or zero.

    unitAmount

    Required. Per-unit price of the item. Can include up to 2 decimal places. This value can’t be negative or zero.

    name

    Required. Item name. Maximum 127 characters.

    kind

    Required. Indicates whether the line item is a debit (sale) or credit (refund) to the customer.

    unitTaxAmount

    Optional: Per-unit tax price of the item. Can include up to 2 decimal places. This value can’t be negative or zero.

    itemDescription

    Optional: Item description. Maximum 127 characters.

    productCode

    Optional: Product or UPC code for the item. Maximum 127 characters.

    url

    Optional: The URL to product information.