braintree-react
Advanced tools
Comparing version 3.0.1 to 3.1.0
@@ -0,1 +1,5 @@ | ||
### `3.1.0` - May 2016 | ||
- Add `defaultFirst` prop [#27](https://github.com/jeffcarp/braintree-react/pull/27) (goodslav) | ||
### `3.0.1` - December 2015 | ||
@@ -2,0 +6,0 @@ |
@@ -15,3 +15,4 @@ 'use strict'; | ||
onReady: React.PropTypes.func, | ||
braintree: React.PropTypes.object.isRequired | ||
braintree: React.PropTypes.object.isRequired, | ||
defaultFirst: React.PropTypes.bool | ||
}, | ||
@@ -21,3 +22,4 @@ | ||
return { | ||
rootClassName: '__braintree-react__' | ||
rootClassName: '__braintree-react__', | ||
defaultFirst: false | ||
}; | ||
@@ -50,2 +52,3 @@ }, | ||
'dropin', { | ||
defaultFirst: props.defaultFirst, | ||
container: ReactDOM.findDOMNode(this), | ||
@@ -73,4 +76,4 @@ onPaymentMethodReceived: props.onPaymentMethodReceived, | ||
this.setState({ | ||
braintreeCheckout: null | ||
}); | ||
braintreeCheckout: null | ||
}); | ||
}); | ||
@@ -77,0 +80,0 @@ }, |
{ | ||
"name": "braintree-react", | ||
"version": "3.0.1", | ||
"version": "3.1.0", | ||
"description": "A React component for Braintree Drop-In", | ||
@@ -8,4 +8,4 @@ "main": "index.js", | ||
"test": "jest", | ||
"build-example": "browserify -t reactify example/app.js > example/dist.js", | ||
"example": "npm run build-example && echo 'Visit localhost:8000/example .' && python -m SimpleHTTPServer" | ||
"preexample": "browserify -t reactify example/app.js > example/dist.js", | ||
"example": "echo 'Visit localhost:8000/example .' && python -m SimpleHTTPServer" | ||
}, | ||
@@ -12,0 +12,0 @@ "author": "Braintree <code@braintreepayments.com>", |
@@ -5,2 +5,4 @@ # Braintree React Component [](https://travis-ci.org/jeffcarp/braintree-react) [](https://www.npmjs.org/package/braintree-react) | ||
 | ||
> Disclaimer: this is not an official Braintree module. | ||
@@ -14,2 +16,9 @@ | ||
## Run the example | ||
```bash | ||
# Clone project and cd into it | ||
npm run example | ||
``` | ||
## Drop-In | ||
@@ -65,6 +74,1 @@ | ||
*Default*: `__braintree-react__` | ||
## Notes | ||
- Drop-In is currently the only supported integration method. | ||
- If there is sufficient interest, we can start building out the custom integration. (Note that as of January 2015, using anything other than DropIn means you can no longer be SAQ A). |
28400
15
143
72