Skip to content

Commit e778fbc

Browse files
committed
Release braintree-web 3.106.0 source
1 parent 0bb5d5c commit e778fbc

File tree

5 files changed

+83
-53
lines changed

5 files changed

+83
-53
lines changed

CHANGELOG.md

Lines changed: 52 additions & 47 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,25 @@
11
# CHANGELOG
22

3-
# 3.105.0
3+
## 3.106.0
4+
5+
- Fraudnet
6+
- Truncate session id to 32 characters.
7+
8+
## 3.105.0
49

510
- PayPal Checkout
611
- Add client-metadata-id as a data attribute when loading the PayPal SDK
712
- Google Pay
813
- Add string conversion for totalPrice
914

10-
# 3.104.0
15+
## 3.104.0
1116

1217
- Fastlane
1318
- Add support for Fastlane.
1419
- DataCollector
1520
- Correlation ID now defaults to match Client Session ID if no Correlation ID is passed when creating DataCollector.
1621

17-
# 3.103.0
22+
## 3.103.0
1823

1924
- Package updates:
2025
- Updates @braintree/asset-loader to v2.0.1
@@ -29,89 +34,89 @@
2934
- ThreeDS
3035
- Update base `verifyCard` to accept amount = 0
3136

32-
# 3.102.0
37+
## 3.102.0
3338

3439
- PayPal
3540
- Support new `amountBreakdown` and its subfields in the `updatePayment` method
3641

37-
# 3.101.3
42+
## 3.101.3
3843

3944
- FrameService
4045
- Updated to limit messages sent between popup and iframe from the window parent.
4146

42-
# 3.101.2
47+
## 3.101.2
4348

4449
- Venmo
4550
- Fix issue introduced in previous patch that would sometimes cause the Venmo flow to crash
4651

47-
# 3.101.1
52+
## 3.101.1
4853

4954
- Venmo
5055
- Fix issue where the Venmo Desktop flow would sometimes report as a mobile web transaction
5156

52-
# 3.101.0
57+
## 3.101.0
5358

5459
- Venmo
5560
- Add support for `isFinalAmount` flag to Venmo create
5661
- Package updates
5762
- Updated @braintree/sanitize-url to 7.0.1
5863

59-
# 3.100.0
64+
## 3.100.0
6065

6166
- 3D Secure
6267
- Remove call to V1 modal as 3DS v1 is unsupported
6368
- Local Payment
6469
- Add support for recurrent local payment
6570

66-
# 3.99.2
71+
## 3.99.2
6772

6873
- Venmo
6974
- Fix race condition in previous bug fix.
7075

71-
# 3.99.1
76+
## 3.99.1
7277

7378
- Venmo
7479
- Fix bug where the Venmo Desktop Popup would sometimes return a tokenization error when a customer canceled within the modal.
7580
- Package updates
7681
- Replace `tomashanacek/gulp-envify` with `ladjs/gulp-envify` due to missing dependency (`tomashanacek/loose-envify`).
7782

78-
# 3.99.0
83+
## 3.99.0
7984

8085
- Venmo
8186
- Update `isBrowserSupported` to return true for iOS Chrome when `allowNewBrowserTab` is true and Venmo is not presented in an iFrame.
8287

83-
# 3.98.0
88+
## 3.98.0
8489

8590
- Local Payment
8691
- Add support for seamless/oneclick BLIK local payment
8792

88-
# 3.97.4
93+
## 3.97.4
8994

9095
- Venmo
9196
- Change overlay container to be on top of other page components and prevent click-through.
9297

93-
# 3.97.3
98+
## 3.97.3
9499

95100
- JS Docs
96101
- Venmo
97102
- Add clarification to `isBrowserSupported` for iOS Chrome.
98103

99-
# 3.97.2
104+
## 3.97.2
100105

101106
- JS Docs
102107
- PayPal
103108
- Add clarification to `updatePayment` options
104109
- Apple Pay
105110
- Updated `displayName` docs for `performValidation` to indicate that maximium length is 64 characters
106111

107-
# 3.97.1
112+
## 3.97.1
108113

109114
- JS docs
110115
- Add more details about content security policy
111116
- Hosted Fields
112117
- Fix bug where keyboard navigation would sometimes not work in FireFox
113118

114-
# 3.97.0
119+
## 3.97.0
115120

116121
- 3D Secure
117122
- Updated documentation for `requestVisaDAF` parameter on `verifyCard`
@@ -125,12 +130,12 @@
125130
- Updated @braintree/sanitize-url to 6.0.4
126131
- Updated @braintree/browser-detection to 1.17.1
127132

128-
# 3.96.1
133+
## 3.96.1
129134

130135
- Venmo
131136
- Fix bug that does not receive the right `enrichedCustomerDataEnabled` flag
132137

133-
# 3.96.0
138+
## 3.96.0
134139

135140
- Update framebus to v5.2.1
136141
- Hosted Fields
@@ -141,7 +146,7 @@
141146
- PayPal
142147
- Add support for v2/orders
143148

144-
# 3.95.0
149+
## 3.95.0
145150

146151
- 3D Secure
147152
- Add `merchantName` option to `verifyCard`
@@ -152,18 +157,18 @@
152157
`totalAmount`, `subTotalAmount`, `discountAmount`, `taxAmount`, `shippingAmount`,
153158
and `lineItems` params to `createVenmoPaymentContext` for rendering in Venmo paysheet
154159

155-
# 3.94.0
160+
## 3.94.0
156161

157162
- 3D Secure
158163
- Adds `collectDeviceData` opt-in flag for 3DS lookups
159164

160-
# 3.93.0
165+
## 3.93.0
161166

162167
- Updated documentation in regards to 3D secure and CSP recommendations
163168
- Local Payment
164169
- Add support for Pay Upon Invoice local payment type: `pay_upon_invoice`
165170

166-
# 3.92.2
171+
## 3.92.2
167172

168173
- Remove dependency on `promise-polyfill`
169174
- Drop depenency on `@braintree/class-list`
@@ -181,7 +186,7 @@
181186
- Moved minimist to devDependencies
182187
- Moved terser to devDependencies
183188

184-
# 3.92.1
189+
## 3.92.1
185190

186191
- Hosted Fields
187192

@@ -195,7 +200,7 @@
195200
- Updated minimist to 1.2.8
196201
- Updated cached-path-relative to 1.1.0
197202

198-
# 3.92.0
203+
## 3.92.0
199204

200205
- Venmo
201206
- Fix issue resulting in blocked popups in desktop web login flow
@@ -204,7 +209,7 @@
204209
- 3D Secure
205210
- Clarify format of IP Address in `AdditionalInformation` object
206211

207-
# 3.91.0
212+
## 3.91.0
208213

209214
- 3D Secure
210215
- Add `requestedExemptionType` option to `verifyCard`
@@ -214,35 +219,35 @@
214219
- Hosted Fields
215220
- Improved accessibility for screen readers
216221

217-
# 3.90.0
222+
## 3.90.0
218223

219224
- Paypal
220225
- Add support for `updatePayment`
221226

222-
# 3.88.6
227+
## 3.88.6
223228

224229
- Venmo
225230
- Fix Desktop Web Login flow running from an iframe
226231

227-
# 3.88.5
232+
## 3.88.5
228233

229234
- Venmo
230235
- Update constants to use correct deeplinking url for Venmo
231236

232-
# 3.88.4
237+
## 3.88.4
233238

234239
- 3D Secure
235240
- Update the regex to validate cardinal commerce domain
236241
- Venmo Desktop
237242
- Use latest framebus for more secure messaging
238243

239-
# 3.88.3
244+
## 3.88.3
240245

241246
- Update framebus to v5.2.0
242247
- Hosted Fields
243248
- Improve iframe communication with parent page
244249

245-
# 3.88.2
250+
## 3.88.2
246251

247252
- Sepa: fix jsdoc entry for `tokenize`
248253
- 3D Secure: update jsdoc entry for `teardown`
@@ -253,38 +258,38 @@
253258
- Local payments
254259
- Fix canceled or failed flow for PopupBridge use cases
255260

256-
# 3.88.1
261+
## 3.88.1
257262

258263
- Venmo:
259264
- fix cases where nonce payload data was missing after tokenization
260265

261-
# 3.88.0
266+
## 3.88.0
262267

263268
- Venmo
264269
- add `allowAndroidRecreation` for addressing Android PopupBridge use cases
265270
- Update terminology around desktop web login
266271
- 3D Secure
267272
- Add check to verify acsUrl if not a cardinal commerce domain
268273

269-
# 3.87.0
274+
## 3.87.0
270275

271276
- Venmo fix mobileWebFallback url reference
272277
- Add support for SEPA Direct Debit
273278

274-
# 3.86.0
279+
## 3.86.0
275280

276281
- Add support for Desktop Web Login flow
277282
- Add support for Mobile Web Fallback
278283

279-
# 3.85.5
284+
## 3.85.5
280285

281286
- Fix internal build issue
282287

283-
# 3.85.4
288+
## 3.85.4
284289

285290
- Update @braintree/browser-detection to v1.14.0
286291

287-
# 3.85.3
292+
## 3.85.3
288293

289294
- Update @braintree/sanitize-url to v6.0.0
290295
- Update promise-polyfill to v8.2.3
@@ -295,20 +300,20 @@
295300
- Fix issue where query strings from URLs with a hash fragment _before_ the query string could not be parsed correctly
296301
- Clarify Vault Manager `options.defaultFirst` functionality in JSDoc
297302

298-
# 3.85.2
303+
## 3.85.2
299304

300305
- Venmo
301306
- Fix issue where iOS Chrome was reporting as a supported browser when Venmo was configured for desktop
302307
- Improve Venmo modal UX in desktop flow
303308
- UnionPay
304309
- Fix typo in our GraphQL Tokenization CREDIT_CARD_BRAND_MAP
305310

306-
# 3.85.1
311+
## 3.85.1
307312

308313
- Venmo
309314
- Fix issue where iOS Chrome was reporting as a supported browser
310315

311-
# 3.85.0
316+
## 3.85.0
312317

313318
- Client
314319
- Add Elo, Hiper, and Hipercard graphQL adapters to card
@@ -324,7 +329,7 @@
324329
- Venmo
325330
- Expose `paymentContextId` when available
326331

327-
# 3.84.0
332+
## 3.84.0
328333

329334
- Client
330335
- Add Elo, Hiper, and Hipercard to `supportedCardTypes`
@@ -333,7 +338,7 @@
333338
- Venmo
334339
- Adjust UI for better navigation
335340

336-
# 3.83.0
341+
## 3.83.0
337342

338343
- Data Collector
339344
- Updates `clientMetadataId` to `riskCorrelationId`
@@ -347,7 +352,7 @@
347352
- Fix issue where Facebook on Android would report as a supported
348353
browser
349354

350-
# 3.82.0
355+
## 3.82.0
351356

352357
- Update @braintree/browser-detection to v1.12.1
353358
- Update inject-stylesheet@v5.0.0
@@ -358,7 +363,7 @@
358363
- Updates `correlationId` to `clientMetadataId` (`correlationId`
359364
is treated as an alias)
360365

361-
# 3.81.1
366+
## 3.81.1
362367

363368
- Venmo
364369
- Fix issue where `@` was sometimes not returned in username param

package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "braintree-web",
3-
"version": "3.105.0",
3+
"version": "3.106.0",
44
"license": "MIT",
55
"main": "src/index.js",
66
"private": true,

src/data-collector/fraudnet.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ var FRAUDNET_SOURCE = require("../lib/constants").FRAUDNET_SOURCE;
55
var FRAUDNET_URL = require("../lib/constants").FRAUDNET_URL;
66
var loadScript = require("../lib/assets").loadScript;
77

8+
var TRUNCATION_LENGTH = 32;
9+
810
var cachedSessionId;
911

1012
function setup(options) {
@@ -32,9 +34,15 @@ Fraudnet.prototype.initialize = function (options) {
3234
var self = this;
3335

3436
this.sessionId = options.sessionId || options.clientSessionId;
37+
38+
if (this.sessionId) {
39+
this.sessionId = this.sessionId.substring(0, TRUNCATION_LENGTH);
40+
}
41+
3542
if (!options.sessionId) {
3643
cachedSessionId = this.sessionId;
3744
}
45+
3846
this._beaconId = _generateBeaconId(this.sessionId);
3947
this._parameterBlock = _createParameterBlock(
4048
this.sessionId,

0 commit comments

Comments
 (0)