fix(subscription): remove redundant pangea_user_id from payment_link request (#5856)

The server derives user identity from the Matrix Bearer token already
sent in the Authorization header. The pangea_user_id query param is
ignored server-side and unnecessary.

Co-authored-by: ggurdin <ggurdin@gmail.com>
Co-authored-by: ggurdin <46800240+ggurdin@users.noreply.github.com>
This commit is contained in:
wcjord 2026-03-03 16:50:56 -05:00 committed by GitHub
parent 0332f4a98d
commit ff80981ef6
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -293,7 +293,7 @@ class SubscriptionController with ChangeNotifier {
accessToken: _pangeaController.userController.accessToken,
);
final String reqUrl = Uri.encodeFull(
"${PApiUrls.paymentLink}?pangea_user_id=$_userID&duration=${duration.value}&redeem=$isPromo",
"${PApiUrls.paymentLink}?duration=${duration.value}&redeem=$isPromo",
);
final Response res = await req.get(url: reqUrl);
final json = jsonDecode(res.body);