Skip to content

Commit

Permalink
fix: fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
aht007 committed Sep 20, 2024
1 parent c45c1a0 commit 90835af
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion common/djangoapps/course_modes/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,7 @@ def get(self, request, course_id, error=None): # lint-amnesty, pylint: disable=

if verified_mode.sku:
context["use_ecommerce_payment_flow"] = ecommerce_service.is_enabled(request.user)
context["ecommerce_payment_page"] = ecommerce_service.payment_page_url()
context["ecommerce_payment_page"] = ecommerce_service.get_add_to_basket_url()
context["sku"] = verified_mode.sku
context["bulk_sku"] = verified_mode.bulk_sku

Expand Down
2 changes: 1 addition & 1 deletion lms/djangoapps/learner_home/serializers.py
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ def get_upgradeUrl(self, instance):
if ecommerce_payment_page and verified_sku:
query_params = {
'sku': verified_sku,
'course_run_key': instance.course_id
'course_run_key': str(instance.course_id)
}
encoded_params = urlencode(query_params)
upgrade_url = f"{ecommerce_payment_page}?{encoded_params}"
Expand Down

0 comments on commit 90835af

Please sign in to comment.