Skip to content

Commit

Permalink
go
Browse files Browse the repository at this point in the history
  • Loading branch information
jamescarr committed Oct 8, 2010
1 parent 0c87817 commit d067427
Showing 1 changed file with 21 additions and 21 deletions.
42 changes: 21 additions & 21 deletions docs/chargify.md
Expand Up @@ -24,28 +24,28 @@ This is a rough cut... hopefully the full API will be implemented soon! Let me k
})

## Creating a Subscription
client.subscriptions.create({
"product_handle":"basic",
"next_billing_at":"2010-08-29T12:00:00-04:00",
"customer_attributes":{
"first_name":"John",
"last_name":"Doe",
"email":"john.doe@example.com",
"reference":"123",
"organization":"Acme Widgets"
},
"payment_profile_attributes":{
"vault_token":"12345",
"customer_vault_token":"67890",
"current_vault":"authorizenet",
"expiration_year":"2020",
"expiration_month":"12",
"card_type":"visa",
"last_four":"1111"
}
}).on('success', function(resp){
client.subscriptions.create({
"product_handle":"basic",
"next_billing_at":"2010-08-29T12:00:00-04:00",
"customer_attributes":{
"first_name":"John",
"last_name":"Doe",
"email":"john.doe@example.com",
"reference":"123",
"organization":"Acme Widgets"
},
"payment_profile_attributes":{
"vault_token":"12345",
"customer_vault_token":"67890",
"current_vault":"authorizenet",
"expiration_year":"2020",
"expiration_month":"12",
"card_type":"visa",
"last_four":"1111"
}
}).on('success', function(resp){
// some response as defined on the chargify api docs site
})
})


## Listing Products
Expand Down

0 comments on commit d067427

Please sign in to comment.