Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
ecommerce
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
ecommerce
Commits
0c03e445
Commit
0c03e445
authored
Jul 24, 2015
by
Renzo Lucioni
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Devstack-specific settings module
parent
35e5ea8a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
63 additions
and
0 deletions
+63
-0
ecommerce/settings/devstack.py
+63
-0
No files found.
ecommerce/settings/devstack.py
0 → 100644
View file @
0c03e445
"""Devstack settings"""
from
os
import
environ
import
yaml
from
ecommerce.settings.base
import
*
from
ecommerce.settings.logger
import
get_logger_config
LOGGING
=
get_logger_config
()
# Pull in base setting overrides from configuration file.
CONFIG_FILE
=
environ
.
get
(
'ECOMMERCE_CFG'
)
if
CONFIG_FILE
is
not
None
:
with
open
(
CONFIG_FILE
)
as
f
:
overrides
=
yaml
.
load
(
f
)
vars
()
.
update
(
overrides
)
# DEBUG CONFIGURATION
DEBUG
=
True
TEMPLATE_DEBUG
=
DEBUG
# END DEBUG CONFIGURATION
# AUTHENTICATION
JWT_AUTH
.
update
({
# Must match LMS' ECOMMERCE_API_SIGNING_KEY setting
'JWT_SECRET_KEY'
:
'insecure-secret-key'
,
# Must match LMS' JWT_ISSUER setting
'JWT_ISSUER'
:
OAUTH2_PROVIDER_URL
})
# Must match LMS' EDX_API_KEY setting
EDX_API_KEY
=
'replace-me'
ENABLE_AUTO_AUTH
=
True
# END AUTHENTICATION
# PAYMENT PROCESSING
PAYMENT_PROCESSOR_CONFIG
=
{
'cybersource'
:
{
'soap_api_url'
:
'https://ics2wstest.ic3.com/commerce/1.x/transactionProcessor/CyberSourceTransaction_1.115.wsdl'
,
'merchant_id'
:
'fake-merchant-id'
,
'transaction_key'
:
'fake-transaction-key'
,
'profile_id'
:
'fake-profile-id'
,
'access_key'
:
'fake-access-key'
,
'secret_key'
:
'fake-secret-key'
,
'payment_page_url'
:
'https://testsecureacceptance.cybersource.com/pay'
,
'receipt_page_url'
:
get_lms_url
(
'/commerce/checkout/receipt/'
),
'cancel_page_url'
:
get_lms_url
(
'/commerce/checkout/cancel/'
),
},
'paypal'
:
{
'mode'
:
'sandbox'
,
'client_id'
:
'fake-client-id'
,
'client_secret'
:
'fake-client-secret'
,
'receipt_url'
:
get_lms_url
(
'/commerce/checkout/receipt/'
),
'cancel_url'
:
get_lms_url
(
'/commerce/checkout/cancel/'
),
},
}
# END PAYMENT PROCESSING
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