Skip to content

Commit ba9b1ef

Browse files
committed
Add the abiltity for users to update their subscriptions
1 parent 2e9ed88 commit ba9b1ef

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

api/pkg/services/user_service.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -311,7 +311,7 @@ func (service *UserService) GetSubscriptionUpdateURL(ctx context.Context, userID
311311
return url, service.tracer.WrapErrorSpan(span, stacktrace.Propagate(err, msg))
312312
}
313313

314-
return subscription.Data.Attributes.Urls.UpdatePaymentMethod, nil
314+
return subscription.Data.Attributes.Urls.CustomerPortal, nil
315315
}
316316

317317
// CancelSubscription starts a subscription for an entities.User

web/pages/billing/index.vue

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@
8383
:loading="loading"
8484
@click="updateDetails"
8585
>
86-
Update Details
86+
Update Plan
8787
</loading-button>
8888
<v-btn
8989
v-else-if="!isOnLifetimePlan"
@@ -347,6 +347,7 @@ import {
347347
mdiAccountCircle,
348348
mdiShieldCheck,
349349
mdiDelete,
350+
mdiCog,
350351
mdiContentSave,
351352
mdiEye,
352353
mdiEyeOff,
@@ -374,6 +375,7 @@ export default Vue.extend({
374375
mdiAccountCircle,
375376
mdiShieldCheck,
376377
mdiDelete,
378+
mdiCog,
377379
mdiContentSave,
378380
mdiCallReceived,
379381
mdiCallMade,

0 commit comments

Comments
 (0)