New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

ember-braintree-components

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ember-braintree-components

Braintree's Drop-In Payment UI and Braintree Auth button as Ember components.

  • 0.1.0
  • latest
  • npm
  • Socket score

Version published
Weekly downloads
1
decreased by-50%
Maintainers
1
Weekly downloads
 
Created
Source

ember-braintree-components

This addon includes Braintree's Drop-In Payment UI and Auth Connect button as Ember components.

Installation

# From within your ember-cli project
ember install ember-braintree-components

Usage

Drop-In UI

// template.hbs
<form>
  {{!-- Must be inside of a <form> --}}
  {{braintree-dropin
    token=braintreeClientToken
    onSubmit=(action 'submit')
  }}
  <button type="submit">Submit</button>
</form>
// controller/component.js
actions: {
  submit(response) {
    // Do something with the nonce
    return this.get('ajax').post('[YOUR URL]', {
      data: {
        paymentNonce: response.nonce
      }
    });
  }
}

drop-in ui

  • token(required) - the token generated by your server
  • onReady - action fired when the UI is ready
  • onSubmit - action fired when the form is submitted (called with payment nonce)
  • onError - action fired when an error occurred
  • options - a hash containing additional options

See the documentation for more information on these options.

Braintree Auth Connect button

// template.hbs
{{braintree-connect-button
  connectUrl=connectUrl
  onError=(action 'onError')
}}
Connect with Braintree
Options
  • connectUrl(required) - the url generated by your server
  • onError - action fired when an error occurred
  • options - a hash containing additional options

See the documentation for more information on these options.

Keywords

FAQs

Package last updated on 02 Aug 2016

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc