Skip to content
This repository has been archived by the owner on Dec 19, 2019. It is now read-only.

What is the difference between trial_length and trial_frequency? #37

Open
HuckyDucky opened this issue Nov 18, 2014 · 2 comments
Open

Comments

@HuckyDucky
Copy link

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
)
@CarlosRoque
Copy link

I would like to know the answer to this too

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants