BTPayPalBillingCycle
public struct BTPayPalBillingCycle : Encodable
PayPal recurring billing cycle details.
-
The interval at which the payment is charged or billed.
See moreDeclaration
Swift
public enum BillingInterval : String, Encodable
-
Initialize a
BTPayPalBillingCycleobject.Declaration
Swift
public init( isTrial: Bool, numberOfExecutions: Int, interval: BillingInterval? = nil, intervalCount: Int? = nil, sequence: Int? = nil, startDate: String? = nil, pricing: BTPayPalBillingPricing? = nil )Parameters
isTrialRequired: The tenure type of the billing cycle. In case of a plan having trial cycle, only 2 trial cycles are allowed per plan.
numberOfExecutionsRequired: The number of times this billing cycle gets executed. Trial billing cycles can only be executed a finite number of times (value between 1 and 999). Regular billing cycles can be executed infinite times (value of 0) or a finite number of times (value between 1 and 999).
intervalOptional: The number of intervals after which a subscriber is charged or billed.
intervalCountOptional: The number of times this billing cycle gets executed. For example, if the
intervalCountis DAY with anintervalCountof 2, the subscription is billed once every two days. Maximum values {DAY -> 365}, {WEEK, 52}, {MONTH, 12}, {YEAR, 1}.sequenceOptional: The sequence of the billing cycle. Used to identify unique billing cycles. For example, sequence 1 could be a 3 month trial period, and sequence 2 could be a longer term full rater cycle. Max value 100. All billing cycles should have unique sequence values.
startDateOptional: The date and time when the billing cycle starts, in Internet date and time format
YYYY-MM-DD. If not provided the billing cycle starts at the time of checkout. If provided and the merchant wants the billing cycle to start at the time of checkout, provide the current time. Otherwise thestartDatecan be in future.pricingOptional: The active pricing scheme for this billing cycle. Required if
trialis false. Optional iftrialis true.
View on GitHub