fnando/paypal-recurring

What is the difference between trial_length and trial_frequency?

Opened this issue · 2 comments

I want to create a monthly subscription with a 5 month trial. Does this do the job?

ppr = PayPal::Recurring.new(
  token: paypal_payment_token,
  payer_id: paypal_customer_token,
  description: "#{plan.name} Monthly Subscription- Up to #{plan.listing_limit} listings for #{self.repository.name}.",
  amount: plan.amount,
  currency: "USD",
  period: :monthly,
  trial_length: 5,
  trial_period: :monthly,
  start_at: Time.now,
  failed: 1,
  outstanding: :next_billing
)

I would like to know the answer to this too