Permalink
Browse files

update readme, outdated examples

  • Loading branch information...
1 parent 79d9570 commit f96f00ca84e63b36f185fe278e34d152f9420894 @em em committed Aug 12, 2011
Showing with 4 additions and 4 deletions.
  1. +4 −4 README.md
View
8 README.md
@@ -32,9 +32,9 @@ Recurly.config({
environment: 'sandbox' // or 'production'
});
-Recurly.buildSubscribeForm({
+Recurly.buildSubscriptionForm({
target: '#subscribe', // A jQuery selector for the container element to append the form to
- plan: 'myplancode' // A plan you have created in recurly-app
+ planCode: 'myplancode' // A plan you have created in recurly-app
successURL: '/success?account_code={account_code}' // Redirect on success URL
});
```
@@ -66,9 +66,9 @@ Recurly.config({
}
});
-Recurly.buildSubscribeForm({
+Recurly.buildSubscriptionForm({
target: '#subscribe' // A jQuery selector for the container element to append the form to
- , plan: 'myplancode' // A plan you have created in recurly-app
+ , planCode: 'myplancode' // A plan you have created in recurly-app
, afterSubscribe: function() {} // Callback after subscription success
, addressRequirement: 'full' // Address fields to display (full | zipstreet | zip | none)
, enableAddOns: true | false

0 comments on commit f96f00c

Please sign in to comment.