BTPayPalRecurringBillingDetails
public struct BTPayPalRecurringBillingDetails
PayPal recurring billing product details.
-
init(billingCycles:
currencyISOCode: totalAmount: productName: productDescription: productQuantity: oneTimeFeeAmount: shippingAmount: productAmount: taxAmount: ) Initialize a
BTPayPalRecurringBillingDetails
object.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
billingCycles
Required: 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.
currencyISOCode
Required: The three-character ISO-4217 currency code that identifies the currency.
totalAmount
Required: The total amount associated with the billing cycle at the time of checkout.
productName
Optional: The name of the plan to display at checkout.
productDescription
Optional: Product description to display at the checkout.
productQuantity
Optional: Quantity associated with the product.
oneTimeFeeAmount
Optional: Price and currency for any one-time charges due at plan signup.
shippingAmount
Optional: The shipping amount for the billing cycle at the time of checkout.
productAmount
Optional: The item price for the product associated with the billing cycle at the time of checkout.
taxAmount
Optional: The taxes for the billing cycle at the time of checkout.