Skip to content

Send and receive SMS messages using your Android phone programmatically via a simple HTTP API

Add the abiltity for users to update their subscriptions

Acho Arnoldba9b1ef27a6a
diff --git a/api/pkg/services/user_service.go b/api/pkg/services/user_service.go
index 7f89bde1..8b91b221 100644
--- a/api/pkg/services/user_service.go
+++ b/api/pkg/services/user_service.go
@@ -311,7 +311,7 @@ func (service *UserService) GetSubscriptionUpdateURL(ctx context.Context, userID
return url, service.tracer.WrapErrorSpan(span, stacktrace.Propagate(err, msg))
}
- return subscription.Data.Attributes.Urls.UpdatePaymentMethod, nil
+ return subscription.Data.Attributes.Urls.CustomerPortal, nil
}
// CancelSubscription starts a subscription for an entities.User
diff --git a/web/pages/billing/index.vue b/web/pages/billing/index.vue
index 8c02964d..a518b0ab 100644
--- a/web/pages/billing/index.vue
+++ b/web/pages/billing/index.vue
@@ -83,7 +83,7 @@
:loading="loading"
@click="updateDetails"
>
- Update Details
+ Update Plan
</loading-button>
<v-btn
v-else-if="!isOnLifetimePlan"
@@ -347,6 +347,7 @@ import {
mdiAccountCircle,
mdiShieldCheck,
mdiDelete,
+ mdiCog,
mdiContentSave,
mdiEye,
mdiEyeOff,
@@ -374,6 +375,7 @@ export default Vue.extend({
mdiAccountCircle,
mdiShieldCheck,
mdiDelete,
+ mdiCog,
mdiContentSave,
mdiCallReceived,
mdiCallMade,