BTVenmoRequest
@objcMembers
public class BTVenmoRequest : NSObject
A BTVenmoRequest specifies options that contribute to the Venmo flow
-
init(paymentMethodUsage:profileID: vault: displayName: collectCustomerBillingAddress: collectCustomerShippingAddress: isFinalAmount: subTotalAmount: discountAmount: taxAmount: shippingAmount: totalAmount: lineItems: ) Initialize a
BTVenmoRequestDeclaration
Swift
@objc(initWithPaymentMethodUsage:profileID:vault:displayName:collectCustomerBillingAddress:collectCustomerShippingAddress:isFinalAmount:subTotalAmount:discountAmount:taxAmount:shippingAmount:totalAmount:lineItems:) public init( paymentMethodUsage: BTVenmoPaymentMethodUsage, profileID: String? = nil, vault: Bool = false, displayName: String? = nil, collectCustomerBillingAddress: Bool = false, collectCustomerShippingAddress: Bool = false, isFinalAmount: Bool = false, subTotalAmount: String? = nil, discountAmount: String? = nil, taxAmount: String? = nil, shippingAmount: String? = nil, totalAmount: String? = nil, lineItems: [BTVenmoLineItem]? = [] )Parameters
paymentMethodUsageRequired: A
BTVenmoPaymentMethodUsagethat determines the usage type of a tokenized Venmo account.profileIDOptional: The Venmo profile ID to be used during payment authorization. Customers will see the business name and logo associated with this Venmo profile. Venmo profile IDs can be found in the Braintree Control Panel. Leaving this
nilwill use the default Venmo profile.vaultOptional: Whether to automatically vault the Venmo account on the client. For client-side vaulting, you must initialize BTAPIClient with a client token that was created with a customer ID. Also,
paymentMethodUsageon the BTVenmoRequest must be set to.multiUse. If this property is set tofalse, you can still vault the Venmo account on your server, provided thatpaymentMethodUsageis not set to.singleUse.displayNameOptional: The business name that will be displayed in the Venmo app payment approval screen. Only used by merchants onboarded as PayFast channel partners.
collectCustomerBillingAddressOptional: Whether the customer’s billing address should be collected and displayed on the Venmo paysheet. Defaults to
false.collectCustomerShippingAddressOptional: Whether the customer’s shipping address should be collected and displayed on the Venmo paysheet. Defaults to
false.isFinalAmountOptional: Indicates whether the purchase amount is the final amount. Removes “subject to change” notice in Venmo app paysheet UI. Defaults to
false.subTotalAmountOptional: The subtotal amount of the transaction to be displayed on the paysheet. Excludes taxes, discounts, and shipping amounts. If this value is set,
totalAmountmust also be set.discountAmountOptional: The total discount amount applied on the transaction to be displayed on the paysheet. If this value is set,
totalAmountmust also be set.taxAmountOptional: The total tax amount for the transaction to be displayed on the paysheet. If this value is set,
totalAmountmust also be set.shippingAmountOptional: The shipping amount for the transaction to be displayed on the paysheet. If this value is set,
totalAmountmust also be set.totalAmountOptional: The grand total amount on the transaction that should be displayed on the paysheet.
lineItemsOptional: The line items for this transaction. It can include up to 249 line items. If this value is set,
totalAmountmust also be set.
View on GitHub