From c4b00b17c8b8dd444943347b0926d1f76b10f012 Mon Sep 17 00:00:00 2001 From: Nathaniel Bibler Date: Fri, 12 Dec 2008 23:37:20 -0500 Subject: [PATCH] Added Subscription example to rdoc. --- lib/simplepay/services/subscription.rb | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/lib/simplepay/services/subscription.rb b/lib/simplepay/services/subscription.rb index db0fe49..2ce15d7 100644 --- a/lib/simplepay/services/subscription.rb +++ b/lib/simplepay/services/subscription.rb @@ -36,6 +36,16 @@ module Services # start_date:: Instructs Amazon with the timestamp to start the recurring subscription charges. # subscription_period:: Defines the expiration window of the subscription (i.e. charge +amount+ every +recurring_frequency+ for "36 months") # + # === Example + # + # (in your view, using the form helper) + # + # <%= simplepay_form_for(:subscription, { + # :amount => 12.95, + # :recurring_frequency => "1 year", + # :description => "My.Url Yearly Dues" + # }) %> + # class Subscription < Service required_field :access_key