Commit 75af7f6a by zubair-arbi

Merge pull request #8916 from edx/zub/story/ecom-1524-add-credit-checkout-page-link

add url link for credit checkout page
parents a930fec8 10bfcb83
...@@ -181,6 +181,9 @@ FEATURES['ENABLE_COSMETIC_DISPLAY_PRICE'] = True ...@@ -181,6 +181,9 @@ FEATURES['ENABLE_COSMETIC_DISPLAY_PRICE'] = True
if FEATURES.get('ENABLE_THIRD_PARTY_AUTH') and 'third_party_auth.dummy.DummyBackend' not in AUTHENTICATION_BACKENDS: if FEATURES.get('ENABLE_THIRD_PARTY_AUTH') and 'third_party_auth.dummy.DummyBackend' not in AUTHENTICATION_BACKENDS:
AUTHENTICATION_BACKENDS = ['third_party_auth.dummy.DummyBackend'] + list(AUTHENTICATION_BACKENDS) AUTHENTICATION_BACKENDS = ['third_party_auth.dummy.DummyBackend'] + list(AUTHENTICATION_BACKENDS)
############## ECOMMERCE API CONFIGURATION SETTINGS ###############
ECOMMERCE_PUBLIC_URL_ROOT = "http://localhost:8002"
##################################################################### #####################################################################
# See if the developer has any local overrides. # See if the developer has any local overrides.
try: try:
......
...@@ -25,8 +25,7 @@ ...@@ -25,8 +25,7 @@
% endif % endif
</p> </p>
<div class="purchase_credit"> <div class="purchase_credit">
## TODO: set the URL for the link to the provider selection page on the E-Commerce service <a class="btn credit-btn purchase-credit-btn" href="${settings.ECOMMERCE_PUBLIC_URL_ROOT}/credit/checkout/${credit_status['course_key']}" target="_blank" data-course-key="${credit_status['course_key']}">${_("Purchase Course Credit")}</a>
<a class="btn credit-btn purchase-credit-btn" href="#" target="_blank" data-course-key="${credit_status['course_key']}">${_("Purchase Course Credit")}</a>
</div> </div>
% elif credit_status["request_status"] in [None, "pending"] and not credit_status["error"] : % elif credit_status["request_status"] in [None, "pending"] and not credit_status["error"] :
% if credit_status["request_status"] == "pending": % if credit_status["request_status"] == "pending":
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment