BTVenmoLineItem
@objcMembers
public class BTVenmoLineItem : NSObject
A Venmo line item to be displayed in the Venmo Paysheet.
-
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
quantityRequired. 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.
unitAmountRequired. Per-unit price of the item. Can include up to 2 decimal places. This value can’t be negative or zero.
nameRequired. Item name. Maximum 127 characters.
kindRequired. Indicates whether the line item is a debit (sale) or credit (refund) to the customer.
unitTaxAmountOptional: Per-unit tax price of the item. Can include up to 2 decimal places. This value can’t be negative or zero.
itemDescriptionOptional: Item description. Maximum 127 characters.
productCodeOptional: Product or UPC code for the item. Maximum 127 characters.
urlOptional: The URL to product information.
View on GitHub