Skip to content

Commit

Permalink
Merge branch 'develop' into ECP-9277
Browse files Browse the repository at this point in the history
  • Loading branch information
SushmitaThakur authored Jul 18, 2024
2 parents bd9c249 + 2fc9de1 commit c422ad5
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
}
],
"description": "Official Shopware 6 Plugin to connect to Payment Service Provider Adyen",
"version": "4.0.0-rc1",
"version": "4.0.0",
"type": "shopware-platform-plugin",
"license": "MIT",
"require": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -77,8 +77,8 @@ Component.register('adyen-notifications', {
}
},

beforeMount() {
this.showWidget = this.adyenService.isAdyenOrder(this.order);
async beforeMount() {
this.showWidget = await this.adyenService.isAdyenOrder(this.order);
if (this.showWidget) {
this.fetchNotifications();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,9 +57,9 @@ Component.register('adyen-partial-payments', {
}
},

beforeMount() {
async beforeMount() {
this.isVersionOlderThan65 = VersionHelper.isVersionOlderThan65();
this.showWidget = this.adyenService.isAdyenOrder(this.order);
this.showWidget = await this.adyenService.isAdyenOrder(this.order);

if (this.showWidget) {
this.fetchAdyenPartialPayments();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -120,8 +120,8 @@ Component.register('adyen-refund', {
},
},

beforeMount() {
this.showWidget = this.adyenService.isAdyenOrder(this.order);
async beforeMount() {
this.showWidget = await this.adyenService.isAdyenOrder(this.order);
if (this.showWidget) {
this.fetchRefunds();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ class ApiClient extends ApiService {
})
.catch((error) => {
console.error('An error occurred: ' + error.message);
throw error;
return false;
});
}

Expand Down

Large diffs are not rendered by default.

0 comments on commit c422ad5

Please sign in to comment.