Permalink
Browse files

Updated docs.

  • Loading branch information...
fnando committed Apr 23, 2012
1 parent db401bc commit 5f7fc4da4da91fd9f2559668610671bcc0af5cbc
Showing with 4 additions and 9 deletions.
  1. +2 −6 README.rdoc
  2. +2 −3 lib/paypal/recurring/base.rb
View
@@ -96,7 +96,7 @@ Finally, you need to create a new recurring profile.
:trial_period => :monthly,
:trial_frequency => 1
})
-
+
You can manage your recurring profile.
ppr = PayPal::Recurring.new(:profile_id => "I-VCEL6TRG35CU")
@@ -111,15 +111,11 @@ You should save two paramaters to your database: <tt>TOKEN</tt> and <tt>PROFILEI
<tt>TOKEN</tt> is required when user returns to your website after he authorizes (or not) the billing process. You
need to save it so you can find him later. You can remove this info after payment and recurring profile are set.
-The <tt>PROFILEID</tt> allows you to manage the recurring profile, like canceling billing when an user don't
+The <tt>PROFILEID</tt> allows you to manage the recurring profile, like cancelling billing when an user don't
want to use your service anymore.
<b>NOTE:</b> TOKEN will expire after approximately 3 hours.
-== TO-DO
-
-* handle Instant Payment Notifications (IPN)
-
== Maintainer
* Nando Vieira (http://nandovieira.com.br)
@@ -244,15 +244,14 @@ def profile
end
# Request a refund.
- # ppr = PayPal::Recurring.new(:profile_id => "I-VCEL6TRG35CU")
- # ppr.refund({
+ # ppr = PayPal::Recurring.new({
+ # :profile_id => "I-VCEL6TRG35CU",
# :transaction_id => "ABCEDFGH",
# :reference => "1234",
# :refund_type => :partial,
# :amount => "9.00",
# :currency => "USD"
# })
- #
# response = ppr.refund
#
def refund

0 comments on commit 5f7fc4d

Please sign in to comment.