braintree-web
Advanced tools
Changelog
3.0.0-beta.12
Some error messages have been changed to be more consistent across components
Update BraintreeError
to include a code
, which can be used to
check for specific errors:
hostedFieldsInstance.tokenize(function (err, payload) {
if (err && err.code === 'FIELDS_EMPTY') {
// Handle user input error
}
});
Fix an incorrect <script>
tag example in API docs
Fix an error in Require.js API docs
Hosted Fields
vault
as an option to tokenize
which allows cards to be
vaulted on tokenizationaddClass
and removeClass
for updating classes on fieldsinvalid
CSS classes to potentiallyValid
fields
on tokenization attemptsPayPal
BraintreeError
objects when the PayPal
flow is canceledcreate
when using a webviewUnionPay
type
to tokenize payloadAdd Apple Pay component.
Changelog
3.0.0-beta.11
type
to Hosted Fields and PayPal tokenize payloadsgetState
method that returns the state of all fields and
possible card typesuseraction
option to paypal.tokenize
BREAKING CHANGES
isUnionPayEnrollmentRequired
to isSupported
.isSupported
is false, Braintree cannot process
UnionPay card. Customer would need to use a different card.smsCodeRequired
flag.
true
, customer will receive an SMS code, that is
required for tokenization.false
, SMS code should not be passed during
tokenization. Tokenization can be done immediately.Changelog
3.0.0-beta.10
0
if the date begins with 1
. This prevents the numbers from
jumping around for dates beginning 01
, 10
, 11
, or 12
.BREAKING CHANGES
Changelog
3.0.0-beta.9
require('braintree-web')
during server-side rendering with libraries such as React.js.index.js
and debug.js
in the npm/bower modules no longer
reference package.json
.create
options aside from client
have now moved to
tokenize
. See BREAKING CHANGES.intent
option which can be sale
or authorize
offerCredit
as an option to tokenize
for offering
customers PayPal Credit as a form of paymentBREAKING CHANGES
PayPal's create
options have moved to tokenize
. Deferring these
options to tokenization time allows greater flexibility in your
checkout experience.
braintree.paypal.create({
client: clientInstance
}, function (err, paypalInstance) {
paypalInstance.tokenize({
flow: 'checkout',
amount: '10.00',
currency: 'USD'
}, function (tokenizeErr, payload) {
// ...
});
});
Changelog
3.0.0-beta.8
card-validator
to 2.2.8
BREAKING CHANGES
Data Collector
The create
API has changed. options.kount
for
dataCollector.create
is now a simple boolean:
dataCollector.create({
client: clientInstance,
kount: true,
paypal: true
}, function (err, collector) {});
Changelog
3.0.0-beta.7
inputSubmitRequest
event which is called when the user
presses the Enter key (or equivalent) in a Hosted Fields input.BREAKING CHANGES
fieldStateChange
event is now 4 events: empty
,
notEmpty
, validityChange
, and cardTypeChange
client
option is now required