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
ca3651fa
Commit
ca3651fa
authored
Aug 20, 2013
by
Jason Bau
Committed by
Diana Huang
Aug 22, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add handling of CyberSource non-ACCEPT decisions
parent
6f70c9b9
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
19 additions
and
2 deletions
+19
-2
lms/djangoapps/shoppingcart/processors/CyberSource.py
+0
-0
lms/djangoapps/shoppingcart/processors/exceptions.py
+3
-0
lms/djangoapps/shoppingcart/views.py
+2
-2
lms/templates/shoppingcart/error.html
+14
-0
No files found.
lms/djangoapps/shoppingcart/processors/CyberSource.py
View file @
ca3651fa
This diff is collapsed.
Click to expand it.
lms/djangoapps/shoppingcart/processors/exceptions.py
View file @
ca3651fa
...
...
@@ -3,6 +3,9 @@ from shoppingcart.exceptions import PaymentException
class
CCProcessorException
(
PaymentException
):
pass
class
CCProcessorSignatureException
(
CCProcessorException
):
pass
class
CCProcessorDataException
(
CCProcessorException
):
pass
...
...
lms/djangoapps/shoppingcart/views.py
View file @
ca3651fa
...
...
@@ -86,8 +86,8 @@ def postpay_callback(request):
if
result
[
'success'
]:
return
HttpResponseRedirect
(
reverse
(
'shoppingcart.views.show_receipt'
,
args
=
[
result
[
'order'
]
.
id
]))
else
:
return
render_to_response
(
'shoppingcart
.processor_
error.html'
,
{
'order'
:
result
[
'order'
],
'error_html'
:
result
[
'error_html'
]})
return
render_to_response
(
'shoppingcart
/
error.html'
,
{
'order'
:
result
[
'order'
],
'error_html'
:
result
[
'error_html'
]})
@login_required
def
show_receipt
(
request
,
ordernum
):
...
...
lms/templates/shoppingcart/error.html
0 → 100644
View file @
ca3651fa
<
%!
from
django
.
utils
.
translation
import
ugettext
as
_
%
>
<
%!
from
django
.
core
.
urlresolvers
import
reverse
%
>
<
%
inherit
file=
"../main.html"
/>
<
%
block
name=
"title"
><title>
${_("Payment Error")}
</title></
%
block>
<section
class=
"container"
>
<p><h1>
${_("There was an error processing your order!")}
</h1></p>
${error_html}
<p><a
href=
"${reverse('shoppingcart.views.show_cart')}"
>
${_("Return to cart to retry payment")}
</a></p>
</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