Skip to content

Commit c5779ab

Browse files
Merge pull request #403 from mercadopago/release/8.5.0
Release v8.5.0
2 parents 70d5604 + 50fac27 commit c5779ab

35 files changed

+1243
-1315
lines changed

CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,13 @@ All notable changes to this project will be documented in this file.
55
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
66
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
77

8+
## [8.5.0] - 2025-09-17
9+
### Changed
10+
- Wallet Button text update
11+
- Behavior change when clicking on Wallet Button to use fast payments flow when active
12+
### Fixed
13+
- When the data does not come as a notification array, transform it into an array
14+
815
## [8.4.7] - 2025-09-08
916
### Fixed
1017
- Adopting code style fixes according to QIT (Quality Insights Toolkit)

assets/css/checkouts/mp-plugins-components.min.css

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

assets/js/checkouts/custom/entities/event-handler.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,10 @@ class MPEventHandler {
9090
}
9191

9292
setMercadoPagoSessionId() {
93+
if (typeof MP_DEVICE_SESSION_ID === 'undefined' || !MP_DEVICE_SESSION_ID) {
94+
return;
95+
}
96+
9397
try {
9498
document.querySelector('#mpCardSessionId').value = MP_DEVICE_SESSION_ID;
9599
} catch (e) {

assets/js/checkouts/custom/entities/event-handler.min.js

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

assets/js/checkouts/super-token/entities/super-token-authenticator.js

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,14 @@ class MPSuperTokenAuthenticator {
2525
this.ableToUseSuperToken = null;
2626
}
2727

28+
isAbleToUseSuperToken() {
29+
return this.ableToUseSuperToken === true;
30+
}
31+
32+
emailAlreadyVerified() {
33+
return this.ableToUseSuperToken !== null;
34+
}
35+
2836
getAmountUsed() {
2937
return this.amountUsed;
3038
}
@@ -78,9 +86,9 @@ class MPSuperTokenAuthenticator {
7886
}
7987
}
8088

81-
async showAuthenticator(authenticator) {
89+
async showAuthenticator(authenticator, showOptions = null) {
8290
try {
83-
const token = await authenticator.show();
91+
const token = await authenticator.show(showOptions);
8492

8593
await this.renderAccountPaymentMethods(token);
8694
} catch (error) {
@@ -92,13 +100,13 @@ class MPSuperTokenAuthenticator {
92100
}
93101
}
94102

95-
async authenticate(amount, buyerEmail) {
103+
async authenticate(amount, buyerEmail, showOptions = null) {
96104
if (this.ableToUseSuperToken === false) return;
97105

98106
const authenticator = await this.buildAuthenticator(amount, buyerEmail);
99107

100108
this.mpSuperTokenMetrics.canUseSuperToken(true);
101109

102-
await this.showAuthenticator(authenticator);
110+
await this.showAuthenticator(authenticator, showOptions);
103111
}
104112
}

assets/js/checkouts/super-token/entities/super-token-authenticator.min.js

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

0 commit comments

Comments
 (0)