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
06a91979
Commit
06a91979
authored
Nov 04, 2015
by
Tasawer
Committed by
Tasawer Nawaz
Nov 05, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added checkout error page.
ECOM-2516
parent
7a7cd6e6
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
20 additions
and
0 deletions
+20
-0
lms/djangoapps/commerce/urls.py
+1
-0
lms/djangoapps/commerce/views.py
+7
-0
lms/templates/commerce/checkout_error.html
+12
-0
No files found.
lms/djangoapps/commerce/urls.py
View file @
06a91979
...
...
@@ -9,5 +9,6 @@ from commerce import views
urlpatterns
=
patterns
(
''
,
url
(
r'^checkout/cancel/$'
,
views
.
checkout_cancel
,
name
=
'checkout_cancel'
),
url
(
r'^checkout/error/$'
,
views
.
checkout_error
,
name
=
'checkout_error'
),
url
(
r'^checkout/receipt/$'
,
views
.
checkout_receipt
,
name
=
'checkout_receipt'
),
)
lms/djangoapps/commerce/views.py
View file @
06a91979
...
...
@@ -23,6 +23,13 @@ def checkout_cancel(_request):
@csrf_exempt
def
checkout_error
(
_request
):
""" Checkout/payment error view. """
context
=
{
'payment_support_email'
:
microsite
.
get_value
(
'payment_support_email'
,
settings
.
PAYMENT_SUPPORT_EMAIL
)}
return
render_to_response
(
"commerce/checkout_error.html"
,
context
)
@csrf_exempt
@login_required
def
checkout_receipt
(
request
):
""" Receipt view. """
...
...
lms/templates/commerce/checkout_error.html
0 → 100644
View file @
06a91979
<
%!
from
django
.
utils
.
translation
import
ugettext
as
_
%
>
<
%
inherit
file=
"../main.html"
/>
<
%
block
name=
"pagetitle"
>
${_("Checkout Error")}
</
%
block>
<section
class=
"container"
>
<h1>
${_("Checkout Error")}
</h1>
${ _(u"An error has occurred with your payment.
<b>
You have not been charged.
</b>
Please try to submit your payment again. If this problem persists, contact {email}.").format(
email="
<a
href=
\"mailto:{email}\"
>
{email}
</a>
".format(email=payment_support_email)) }
</section>
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