diff --git a/console/src/app/modules/features/features.component.html b/console/src/app/modules/features/features.component.html
index cbf26e6dde..bbd5524ff0 100644
--- a/console/src/app/modules/features/features.component.html
+++ b/console/src/app/modules/features/features.component.html
@@ -14,7 +14,7 @@
{{'FEATURES.TIER.DETAILS' | translate}} - {{'ACTIONS.EDIT' | translate}} + {{'ACTIONS.EDIT' | translate}}
{{stripeCustomer?.contact}}
{{stripeCustomer?.company}}
diff --git a/console/src/app/modules/features/features.component.ts b/console/src/app/modules/features/features.component.ts index 43ca313223..3cf1c77bf4 100644 --- a/console/src/app/modules/features/features.component.ts +++ b/console/src/app/modules/features/features.component.ts @@ -90,7 +90,7 @@ export class FeaturesComponent implements OnDestroy { this.sub.unsubscribe(); } - public updateCustomer(): void { + public setCustomer(): void { const dialogRefPhone = this.dialog.open(PaymentInfoDialogComponent, { data: { customer: this.stripeCustomer, @@ -102,7 +102,7 @@ export class FeaturesComponent implements OnDestroy { if (customer) { console.log(customer); this.stripeCustomer = customer; - this.subService.updateCustomer(this.org.id, customer).then(() => { + this.subService.setCustomer(this.org.id, customer).then(() => { this.getLinkToStripe(); }).catch(console.error); } diff --git a/console/src/app/services/subscription.service.ts b/console/src/app/services/subscription.service.ts index 18d48119d3..f138d9d830 100644 --- a/console/src/app/services/subscription.service.ts +++ b/console/src/app/services/subscription.service.ts @@ -30,7 +30,6 @@ export class SubscriptionService { const accessToken = this.storageService.getItem(accessTokenStorageKey); return this.http.get(`${serviceUrl}/redirect`, { headers: { - // 'Content-Type': 'application/json; charset=utf-8', [authorizationKey]: `${bearerPrefix} ${accessToken}`, }, params: { @@ -53,7 +52,6 @@ export class SubscriptionService { const accessToken = this.storageService.getItem(accessTokenStorageKey); return this.http.get(`${serviceUrl}/customer`, { headers: { - // 'Content-Type': 'application/json; charset=utf-8', [authorizationKey]: `${bearerPrefix} ${accessToken}`, }, params: { @@ -66,15 +64,14 @@ export class SubscriptionService { }); } - public updateCustomer(orgId: string, body: StripeCustomer): Promise