Skip to content

Instantly share code, notes, and snippets.

@mbeale
Created April 11, 2012 18:41
Show Gist options
  • Save mbeale/2361290 to your computer and use it in GitHub Desktop.
Save mbeale/2361290 to your computer and use it in GitHub Desktop.
recurly sub sample
subscription = Recurly::Subscription.create(
:plan_code => 'standard',
:currency => 'USD',
:add_ons => [{
:add_on => {
:add_on_code => 'extraip',
:quantity => 1
}
}],
:account => {
:account_code => Time.now.to_i,
:email => "user#{Time.now.to_i}@email.com",
:first_name => 'Verena',
:last_name => 'Example',
:billing_info => {
:number => '4111-1111-1111-1111',
:month => 1,
:year => 2014,
}
}
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment