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
34e8ee6b
Commit
34e8ee6b
authored
Mar 02, 2015
by
Adam Palay
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add extra logging for postpay callbacks from cybersource (ECOM-1034) (ECOM-1089)
parent
984f8732
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
0 deletions
+13
-0
lms/djangoapps/shoppingcart/processors/CyberSource2.py
+10
-0
lms/envs/common.py
+3
-0
No files found.
lms/djangoapps/shoppingcart/processors/CyberSource2.py
View file @
34e8ee6b
...
...
@@ -407,6 +407,11 @@ def _record_purchase(params, order):
else
:
ccnum
=
"####"
if
settings
.
FEATURES
.
get
(
"LOG_POSTPAY_CALLBACKS"
):
log
.
info
(
"Order
%
d purchased with params:
%
s"
,
order
.
id
,
json
.
dumps
(
params
)
)
# Mark the order as purchased and store the billing information
order
.
purchase
(
first
=
params
.
get
(
'req_bill_to_forename'
,
''
),
...
...
@@ -433,6 +438,11 @@ def _record_payment_info(params, order):
Returns:
None
"""
if
settings
.
FEATURES
.
get
(
"LOG_POSTPAY_CALLBACKS"
):
log
.
info
(
"Order
%
d processed (but not completed) with params:
%
s"
,
order
.
id
,
json
.
dumps
(
params
)
)
order
.
processor_reply_dump
=
json
.
dumps
(
params
)
order
.
save
()
...
...
lms/envs/common.py
View file @
34e8ee6b
...
...
@@ -347,6 +347,9 @@ FEATURES = {
# Courseware search feature
'ENABLE_COURSEWARE_SEARCH'
:
False
,
# log all information from cybersource callbacks
'LOG_POSTPAY_CALLBACKS'
:
True
,
}
# Ignore static asset files on import which match this pattern
...
...
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