Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
edx-platform
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
edx
edx-platform
Commits
75af7f6a
Commit
75af7f6a
authored
Jul 15, 2015
by
zubair-arbi
Browse files
Options
Browse Files
Download
Plain Diff
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
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
2 deletions
+4
-2
lms/envs/devstack.py
+3
-0
lms/templates/dashboard/_dashboard_credit_info.html
+1
-2
No files found.
lms/envs/devstack.py
View file @
75af7f6a
...
@@ -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
:
...
...
lms/templates/dashboard/_dashboard_credit_info.html
View file @
75af7f6a
...
@@ -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":
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment