diff --git a/common/djangoapps/course_modes/views.py b/common/djangoapps/course_modes/views.py index 759073a13583..821c59dc0524 100644 --- a/common/djangoapps/course_modes/views.py +++ b/common/djangoapps/course_modes/views.py @@ -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 diff --git a/lms/djangoapps/learner_home/serializers.py b/lms/djangoapps/learner_home/serializers.py index fbcbe2860a36..3d156f3640ca 100644 --- a/lms/djangoapps/learner_home/serializers.py +++ b/lms/djangoapps/learner_home/serializers.py @@ -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}"