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:
parent
0332f4a98d
commit
ff80981ef6
1 changed files with 1 additions and 1 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue