https://github.com/cycoresystems/meteor-braintree
Braintree package for Meteor <deprecated>
https://github.com/cycoresystems/meteor-braintree
Last synced: 21 days ago
JSON representation
Braintree package for Meteor <deprecated>
- Host: GitHub
- URL: https://github.com/cycoresystems/meteor-braintree
- Owner: CyCoreSystems
- Created: 2015-01-02T18:05:58.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2015-06-27T18:55:24.000Z (almost 11 years ago)
- Last Synced: 2025-02-25T15:03:41.926Z (over 1 year ago)
- Language: JavaScript
- Homepage:
- Size: 187 KB
- Stars: 1
- Watchers: 5
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
ulexus:braintree ``
=======
DEPRECATED: @patrickml has created a more complete, more compliant package which I recommend using instead:
* Github: [https://github.com/patrickml/braintree/](https://github.com/patrickml/braintree/)
* Atmosphere: [https://atmospherejs.com/patrickml/braintree](https://atmospherejs.com/patrickml/braintree)
* Meteor add: `patrickml:braintree`
Exposes a few commonly-used methods of the Braintree client for Meteor (wrapped properly on the `BraintreeClient` object).
Also exports the braintree client itself (as `Braintree`)
# Methods exposed on `BraintreeClient`
* `BraintreeClient.createSale(opts)`: create a sale (new transaction). The opts are identical to those
for the native `transaction.sale` (which is async-wrapped and called by this method)
* `BraintreeClient.createCustomer(opts)`: create a new customer. The opts are identical to those for
the native `customer.create` (which is async-wrapped and called by this method)
* `BraintreeClient.getCustomer(id)`: retrieves a customer object by its id.
* `BraintreeClient.createCreditCard(opts)`: create a new credit card. The opts are identical to those for
the native `creditCard.create` (which is async-wrapped and called by this method)
* `BraintreeClient.createSubscription(opts)`: create a new subscription. The opts are identical to those for
the native `subscription.create` (which is async-wrapped and called by this method)
* `BraintreeClient.cancelSubscription(opts)`: cancel a subscription. The opts are identical to those for
the native `subscription.cancel` (which is async-wrapped and called by this method)