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
98aa02d5
Commit
98aa02d5
authored
Jan 06, 2015
by
Will Daly
Committed by
Zia Fazal
Apr 07, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix ECOM-872
parent
21ece530
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
1 deletions
+8
-1
lms/djangoapps/shoppingcart/tests/test_views.py
+7
-0
lms/djangoapps/shoppingcart/views.py
+1
-1
No files found.
lms/djangoapps/shoppingcart/tests/test_views.py
View file @
98aa02d5
...
...
@@ -1217,7 +1217,14 @@ class ReceiptRedirectTest(UrlResetMixin, ModuleStoreTestCase):
@patch.dict
(
settings
.
FEATURES
,
{
'SEPARATE_VERIFICATION_FROM_PAYMENT'
:
True
})
def
test_show_receipt_redirect_to_verify_student
(
self
):
# Create other carts first
# This ensures that the order ID and order item IDs do not match
Order
.
get_cart_for_user
(
self
.
user
)
.
start_purchase
()
Order
.
get_cart_for_user
(
self
.
user
)
.
start_purchase
()
Order
.
get_cart_for_user
(
self
.
user
)
.
start_purchase
()
# Purchase a verified certificate
self
.
cart
=
Order
.
get_cart_for_user
(
self
.
user
)
CertificateItem
.
add_to_order
(
self
.
cart
,
self
.
course_key
,
...
...
lms/djangoapps/shoppingcart/views.py
View file @
98aa02d5
...
...
@@ -818,7 +818,7 @@ def _show_receipt_html(request, order):
# Add a query string param for the order ID
# This allows the view to query for the receipt information later.
url
+=
'?payment-order-num={order_num}'
.
format
(
order_num
=
order_items
[
0
]
.
id
order_num
=
order_items
[
0
]
.
order
.
id
)
return
HttpResponseRedirect
(
url
)
...
...
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