BTPayPalRecurringBillingDetails
public struct BTPayPalRecurringBillingDetails : Encodable
PayPal recurring billing product details.
-
init(billingCycles:currencyISOCode: totalAmount: productName: productDescription: productQuantity: oneTimeFeeAmount: shippingAmount: productAmount: taxAmount: ) Initialize a
BTPayPalRecurringBillingDetailsobject.Declaration
Swift
public init( billingCycles: [BTPayPalBillingCycle], currencyISOCode: String, totalAmount: String, productName: String? = nil, productDescription: String? = nil, productQuantity: Int? = nil, oneTimeFeeAmount: String? = nil, shippingAmount: String? = nil, productAmount: String? = nil, taxAmount: String? = nil )Parameters
billingCyclesRequired: An array of billing cycles for trial billing and regular billing. A plan can have at most two trial cycles and only one regular cycle. Exceeding 3 items in this array results in an error.
currencyISOCodeRequired: The three-character ISO-4217 currency code that identifies the currency.
totalAmountRequired: The total amount associated with the billing cycle at the time of checkout.
productNameOptional: The name of the plan to display at checkout.
productDescriptionOptional: Product description to display at the checkout.
productQuantityOptional: Quantity associated with the product.
oneTimeFeeAmountOptional: Price and currency for any one-time charges due at plan signup.
shippingAmountOptional: The shipping amount for the billing cycle at the time of checkout.
productAmountOptional: The item price for the product associated with the billing cycle at the time of checkout.
taxAmountOptional: The taxes for the billing cycle at the time of checkout.
View on GitHub