Exemplo n.º 1
0
    def testSetTwoConfigItems(self):
        s = [
            IntegerValue(BASE_GROUP, 'testTwoA'),
            StringValue(BASE_GROUP, 'testTwoB')
        ]
        config_register_list(*s)

        self.assert_(config_exists(BASE_GROUP, 'testTwoA'))
        self.assert_(config_exists(BASE_GROUP, 'testTwoB'))
Exemplo n.º 2
0
config_register_list(
    BooleanValue(
        PAYMENT_GROUP,
        'AUTH_EARLY',
        description=_("Early AUTH"),
        help_text=
        _("Where possible, Authenticate on the card entry page.  This causes an immediate $.01 AUTH and release, allowing errors with the card to show on the card entry page instead of on the confirmation page.  Note that this is only supported for payment modules that can do Authorizations.  It will be silently ignored for any other processors."
          ),
        default=False),
    BooleanValue(
        PAYMENT_GROUP,
        'COUNTRY_MATCH',
        description=_("Country match required?"),
        help_text=
        _("If True, then customers may not have different countries for shipping and billing."
          ),
        default=True),
    DecimalValue(
        PAYMENT_GROUP,
        'MINIMUM_ORDER',
        description=_("Minimum Order"),
        help_text=_("""The minimum cart total before checkout is allowed."""),
        default="0.00"),
    BooleanValue(
        PAYMENT_GROUP,
        'STORE_CREDIT_NUMBERS',
        description=_("Save Credit Card Numbers"),
        help_text=
        _("If False, then the credit card will never be written to disk.  For PCI compliance, this is required unless you have your database server on a separate server not connected to the internet."
          ),
        default=False),
    PositiveIntegerValue(
        PAYMENT_GROUP,
        'CC_NUM_YEARS',
        description=_("Number of years to display for CC expiration"),
        help_text=
        _("Number of years that will be added to today's year for the CC expiration drop down"
          ),
        default=10),
    BooleanValue(
        PAYMENT_GROUP,
        'USE_DISCOUNTS',
        description=_("Use discounts"),
        help_text=
        _("""If disabled, customers will not be asked for any discount codes."""
          ),
        default=True))
Exemplo n.º 3
0
from livesettings.functions import config_register_list,config_get,config_get_group

SHIP_MODULES = config_get('SHIPPING', 'MODULES')
SHIP_MODULES.add_choice(('shipping.modules.flat', _('Flat rate')))
SHIPPING_GROUP = config_get_group('SHIPPING')

config_register_list(

    DecimalValue(SHIPPING_GROUP,
        'FLAT_RATE',
        description=_("Flat shipping"),
        requires=SHIP_MODULES,
        requiresvalue='shipping.modules.flat',
        default="4.00"),

    StringValue(SHIPPING_GROUP,
        'FLAT_SERVICE',
        description=_("Flat Shipping Service"),
        help_text=_("Shipping service used with Flat rate shipping"),
        requires=SHIP_MODULES,
        requiresvalue='shipping.modules.flat',
        default=u"U.S. Mail"),
    
    StringValue(SHIPPING_GROUP,
        'FLAT_DAYS',
        description=_("Flat Delivery Days"),
        requires=SHIP_MODULES,
        requiresvalue='shipping.modules.flat',
        default="3 - 4 business days")
)
Exemplo n.º 4
0
config_register_list(

StringValue(PAYMENT_GROUP,
    'CURRENCY_CODE',
    description=_('Currency Code'),
    help_text=_('Currency code for Paypal transactions.'),
    default = 'USD'),

StringValue(PAYMENT_GROUP,
    'POST_URL',
    description=_('Post URL'),
    help_text=_('The Paypal URL for real transaction posting.'),
    default="https://www.paypal.com/cgi-bin/webscr"),

StringValue(PAYMENT_GROUP,
    'POST_TEST_URL',
    description=_('Post URL'),
    help_text=_('The Paypal URL for test transaction posting.'),
    default="https://www.sandbox.paypal.com/cgi-bin/webscr"),

StringValue(PAYMENT_GROUP,
    'BUSINESS',
    description=_('Paypal account email'),
    help_text=_('The email address for your paypal account'),
    default=""),

StringValue(PAYMENT_GROUP,
    'BUSINESS_TEST',
    description=_('Paypal test account email'),
    help_text=_('The email address for testing your paypal account'),
    default=""),

StringValue(PAYMENT_GROUP,
    'RETURN_ADDRESS',
    description=_('Return URL'),
    help_text=_('Where Paypal will return the customer after the purchase is complete.  This can be a named url and defaults to the standard checkout success.'),
    default="satchmo_checkout-success"),

BooleanValue(PAYMENT_GROUP,
    'LIVE',
    description=_("Accept real payments"),
    help_text=_("False if you want to be in test mode"),
    default=False),

ModuleValue(PAYMENT_GROUP,
    'MODULE',
    description=_('Implementation module'),
    hidden=True,
    default = 'payment.modules.paypal'),

StringValue(PAYMENT_GROUP,
    'KEY',
    description=_("Module key"),
    hidden=True,
    default = 'PAYPAL'),

StringValue(PAYMENT_GROUP,
    'LABEL',
    description=_('English name for this group on the checkout screens'),
    default = 'PayPal',
    dummy = _('PayPal'), # Force this to appear on po-files
    help_text = _('This will be passed to the translation utility')),

StringValue(PAYMENT_GROUP,
    'URL_BASE',
    description=_('The url base used for constructing urlpatterns which will use this module'),
    default = '^paypal/'),

BooleanValue(PAYMENT_GROUP,
    'EXTRA_LOGGING',
    description=_("Verbose logs"),
    help_text=_("Add extensive logs during post."),
    default=False)
)
Exemplo n.º 5
0
config_register_list(

    BooleanValue(PAYMENT_GROUP,
        'LIVE',
        description=_("Accept real payments"),
        help_text=_("False if you want to submit to the test urls.  NOTE: Look "
                    "at the PayflowPro developer's guide "
                    "(https://cms.paypal.com/us/cgi-bin/?cmd=_render-content"
                    "&content_ID=developer/howto_gateway_payflowpro) for the "
                    "list of valid credit card numbers."),
        default=False),

    ModuleValue(PAYMENT_GROUP,
        'MODULE',
        description=_('Implementation module'),
        hidden=True,
        default = 'payment.modules.payflowpro'),

    BooleanValue(PAYMENT_GROUP,
        'CAPTURE',
        description=_('Capture Payment immediately?'),
        default=True,
        help_text=_('IMPORTANT: If false, a capture attempt will be '
                    'made when the order is marked as shipped.')),

    StringValue(PAYMENT_GROUP,
        'KEY',
        description=_("Module key"),
        hidden=True,
        default = 'PAYFLOWPRO'),

    StringValue(PAYMENT_GROUP,
        'LABEL',
        description=_('English name for this group on the checkout screens'),
        default = 'Credit Cards',
        dummy = _('Credit Cards'), # Force this to appear on po-files
        help_text = _('This will be passed to the translation utility')),

    StringValue(PAYMENT_GROUP,
        'URL_BASE',
        description=_('The url base used for constructing urlpatterns which '
                      'will use this module'),
        default = r'^credit/'),

    MultipleStringValue(
        PAYMENT_GROUP,
        'CREDITCHOICES',
        description=_('Available credit cards'),
        choices = (
            (('American Express', 'American Express')),
            (('Visa','Visa')),
            (('Mastercard','Mastercard')),
            (('Discover','Discover')),
            (('Diners Club', 'Diners Club')),
            (('JCB', 'JCB')),
            ),
        default = ('Visa', 'Mastercard')),
    
    StringValue(PAYMENT_GROUP,
        'PARTNER',
        description=_("Your authorized PayPal reseller's id."),
        default="PayPal"),

    StringValue(PAYMENT_GROUP,
        'VENDOR',
        description=_("Your merchant login ID that you created when you "
                      "registered for the account."),
        default="VENDOR_ID"),

    StringValue(PAYMENT_GROUP,
        'USER',
        description=_("If you set up more additional users on the PayPal "
                      "account, this value is the ID of the user authorized to "
                      "process transactions. If you have not set up additional "
                      "users on the account, has the same value as VENDOR."),
        default="VENDOR_ID"),

    StringValue(
        PAYMENT_GROUP,
        'PASSWORD',
        description=_("Your PayflowPro account password"),
        default=""),

    #BooleanValue(PAYMENT_GROUP,
        #'CAPTURE',
        #description=_('Capture Payment immediately?'),
        #default=True,
        #help_text=_('IMPORTANT: If false, a capture attempt will be made when '
        #            'the order is marked as shipped.')),

    BooleanValue(PAYMENT_GROUP,
        'EXTRA_LOGGING',
        description=_("Verbose logs"),
        help_text=_("Add extensive logs during post."),
        default=False)
    )
Exemplo n.º 6
0
from django.utils.translation import ugettext_lazy as _
from livesettings.values import StringValue, DecimalValue
from livesettings.functions import config_register_list, config_get, config_get_group

SHIP_MODULES = config_get('SHIPPING', 'MODULES')
SHIP_MODULES.add_choice(('shipping.modules.flat', _('Flat rate')))
SHIPPING_GROUP = config_get_group('SHIPPING')

config_register_list(
    DecimalValue(SHIPPING_GROUP,
                 'FLAT_RATE',
                 description=_("Flat shipping"),
                 requires=SHIP_MODULES,
                 requiresvalue='shipping.modules.flat',
                 default="4.00"),
    StringValue(SHIPPING_GROUP,
                'FLAT_SERVICE',
                description=_("Flat Shipping Service"),
                help_text=_("Shipping service used with Flat rate shipping"),
                requires=SHIP_MODULES,
                requiresvalue='shipping.modules.flat',
                default="U.S. Mail"),
    StringValue(SHIPPING_GROUP,
                'FLAT_DAYS',
                description=_("Flat Delivery Days"),
                requires=SHIP_MODULES,
                requiresvalue='shipping.modules.flat',
                default="3 - 4 business days"))
Exemplo n.º 7
0
config_register_list(
    StringValue(SHIPPING_GROUP,
                'USER_ID',
                description=_("USPS  Username"),
                help_text=_("User ID provided by USPS site."),
                default=""),
    StringValue(SHIPPING_GROUP,
                'USER_PASSWORD',
                description=_("USPS Password"),
                help_text=_("User password provided by USPS site."),
                default=""),
    DecimalValue(
        SHIPPING_GROUP,
        'HANDLING_FEE',
        description=_("Handling Fee"),
        help_text=_("The cost of packaging and taking order to post office"),
        default=Decimal('0.00')),
    MultipleStringValue(
        SHIPPING_GROUP,
        'USPS_SHIPPING_CHOICES',
        description=_("USPS Shipping Choices Available to customers."),
        choices=(
            (('0', 'First Class')),
            (('1', 'Priority Mail')),
            (('16', 'Priority Mail Flat-Rate Envelope')),
            (('17', 'Priority Mail Flat-Rate Box')),
            (('22', 'Priority Mail Large Flat-Rate Box')),
            (('3', 'Express Mail')),
            (('13', 'Express Mail Flat-Rate Envelope')),
            (('4', 'Parcel Post')),
            (('5', 'Bound Printed Matter')),
            (('6', 'Media Mail')),
            (('7', 'Library Mail')),

            # INTERNATIONAL CODES
            (('14', 'Int`l: First Class Mail International Large Envelope')),
            (('15', 'Int`l: First Class Mail International Package')),
            (('1', 'Int`l: Express Mail International (EMS)')),
            (('4', 'Int`l: Global Express Guaranteed')),
            (('6',
              'Int`l: Global Express Guaranteed Non-Document Rectangular')),
            (('7',
              'Int`l: Global Express Guaranteed Non-Document Non-Rectangular')
             ),
            (('10',
              'Int`l: Express Mail International (EMS) Flat-Rate Envelope')),
            (('2', 'Int`l: Priority Mail International')),
            (('8', 'Int`l: Priority Mail International Flat-Rate Envelope')),
            (('9', 'Int`l: Priority Mail International Flat-Rate Box')),
            (('11', 'Int`l: Priority Mail International Large Flat-Rate Box')),
            (('12', 'Int`l: USPS GXG Envelopes')),
        ),
        default=('3', )),
    StringValue(SHIPPING_GROUP,
                'SHIPPING_CONTAINER',
                description=_("Type of container used to ship product."),
                choices=(
                    (('00', 'Unknown')),
                    (('01', 'Variable')),
                    (('02', 'Flat rate box')),
                    (('03', 'Flat rate envelope')),
                    (('04', 'Rectangular')),
                    (('05', 'Non-rectangular')),
                ),
                default="01"),
    BooleanValue(SHIPPING_GROUP,
                 'LIVE',
                 description=_("Access production USPS server"),
                 help_text=_("Use this when your store is in production."),
                 default=False),
    StringValue(SHIPPING_GROUP,
                'CONNECTION',
                description=_("Submit to URL"),
                help_text=_("Address to submit live transactions."),
                default="http://production.shippingapis.com/ShippingAPI.dll"),
    StringValue(SHIPPING_GROUP,
                'CONNECTION_TEST',
                description=_("Submit to Test URL"),
                help_text=_("Address to submit test transactions."),
                default="http://testing.shippingapis.com/ShippingAPITest.dll"),
    BooleanValue(
        SHIPPING_GROUP,
        'VERBOSE_LOG',
        description=_("Verbose logs"),
        help_text=
        _("Send the entire request and response to the log - for debugging help when setting up USPS."
          ),
        default=False),

    #ModuleValue(SHIPPING_GROUP,
    #    'MODULE',
    #    description=_('Implementation module'),
    #    hidden=True,
    #    default = 'shipping.modules.ups'),
)
Exemplo n.º 8
0
config_register_list(
    ModuleValue(PAYMENT_GROUP,
        'MODULE',
        description=_('Implementation module'),
        hidden=True,
        default = 'payment.modules.sermepa'
        ),
    StringValue(PAYMENT_GROUP,
        'KEY',
        description=_("Module key"),
        hidden=True,
        default = 'SERMEPA'
        ),
    StringValue(PAYMENT_GROUP,
        'LABEL',
        description=_('English name for this group on the checkout screens'),
        default = 'Credit Card (via SERMEPA)',
        dummy = _('Credit Card (via SERMEPA)'), # Force this to appear on po-files
        help_text = _('This will be passed to the translation utility'),
        ordering=10
        ),
    StringValue(PAYMENT_GROUP,
        'URL_BASE',
        description=_('The url base used for constructing urlpatterns which will use this module'),
        default = '^sermepa/',
        ordering=20
        ),
    BooleanValue(
        PAYMENT_GROUP,
        'LIVE',
        description=_("Accept real payments"),
        help_text=_("False if you want to be in test mode"),
        default=False,
        ordering=30
        ),
    StringValue(
        PAYMENT_GROUP,
        'MERCHANT_CURRENCY',
        description=_('Currency'),
        default='978',
        choices=[
            ('978', _("EUR (Euro)")),
            ('840', _("USD (US Dollar)")),
            ('826', _("GBP (British Pound)")),
            ('392', _("JPY (Japanese Yen)")),
            ],
        ordering=40
        ),
    StringValue(
        PAYMENT_GROUP,
        'MERCHANT_FUC',
        description=_('Merchant FUC'),
        help_text=_('Your FUC code'),
        ordering=50
        ),
    StringValue(
        PAYMENT_GROUP,
        'MERCHANT_TITULAR',
        description=_('Merchant title'),
        help_text=_('Description of your shop which will be visible on payment confirmation screen'),
        ordering=60,
        ),

    # signature
    StringValue(
        PAYMENT_GROUP,
        'MERCHANT_SIGNATURE_CODE',
        description=_('Signature code'),
        help_text=_('Your secret code used to sign transaction data'),
        ordering=100,
        ),
    StringValue(
        PAYMENT_GROUP,
        'MERCHANT_TEST_SIGNATURE_CODE',
        description=_('Test signature code'),
        help_text=_('Your secret code used to sign transaction data in test payments'),
        ordering=200,
        ),
    BooleanValue(
        PAYMENT_GROUP,
        'EXTENDED_SIGNATURE',
        description=_("Extended signature calculation"),
        help_text=_("Consult your Sermepa documentation to know the differences between normal and extended signature calculation, and ask your provider which type of signature expects you to use. If possible, use extended signature."),
        default=False,
        ordering=105,
        ),
    # terminal
    IntegerValue(
        PAYMENT_GROUP,
        'MERCHANT_TERMINAL',
        description=_('Terminal number'),
        default=1,
        ordering=110
        ),
    IntegerValue(
        PAYMENT_GROUP,
        'MERCHANT_TEST_TERMINAL',
        description=_('Test terminal number'),
        default=1,
        help_text=_('Terminal number used for test payments'),
        ordering=210
        ),
    # post url
    StringValue(
        PAYMENT_GROUP,
        'POST_URL',
        description=_('Post URL'),
        help_text=_('The SERMEPA URL for real transaction posting.'),
        default="https://sis.sermepa.es/sis/realizarPago",
        ordering=120
        ),
    StringValue(
        PAYMENT_GROUP,
        'POST_TEST_URL',
        description=_('Test Post URL'),
        help_text=_('The SERMEPA URL for test transaction posting.'),
        default="https://sis-t.sermepa.es:25443/sis/realizarPago",
        ordering=220
        ),

    StringValue(
        PAYMENT_GROUP,
        'MERCHANT_URL_CALLBACK',
        description=_('Callback URL'),
        help_text=_('Callback URL for on-line notifications about payment progress'),
        default='SERMEPA_satchmo_checkout-notify_callback',
        ordering=300
        ),
    StringValue(
        PAYMENT_GROUP,
        'MERCHANT_URL_OK',
        description=_('OK URL'),
        help_text=_('URL for customer to return after successful payment'),
        default='SERMEPA_satchmo_checkout-success',
        ordering=310
        ),
    StringValue(
        PAYMENT_GROUP,
        'MERCHANT_URL_KO',
        description=_('Failure URL'),
        help_text=_('URL for customer to return after payment failure'),
        default='SERMEPA_satchmo_checkout-failure',
        ordering=320
        ),
    BooleanValue(PAYMENT_GROUP,
        'EXTRA_LOGGING',
        description=_("Verbose logs"),
        help_text=_("Add extensive logs during post."),
        default=False)
    )
Exemplo n.º 9
0
config_register_list(

    BooleanValue(PAYMENT_GROUP,
        'LIVE',
        description=_("Accept real payments"),
        help_text=_("False if you want to be in test mode"),
        default=False),

    BooleanValue(PAYMENT_GROUP,
        'SIMULATOR',
        description=_("Simulated Transactions?"),
        help_text=_("Must be false to accept real payments"),
        default=False),

    BooleanValue(PAYMENT_GROUP,
        'SKIP_POST',
        description=_("Skip post?"),
        help_text=_("For testing only, this will skip actually posting to Sage Pay servers.  This is because their servers restrict IPs of posting servers, even for tests.  If you are developing on a desktop, you'll have to enable this."),
        default=False),

    StringValue(PAYMENT_GROUP,
        'CAPTURE',
        description=_('Payment Capture'),
        help_text=_('This can be "Payment" which captures immediately, or "Deferred".  Note that you can only use the latter if you set option on your Sage pay account first.'),
        choices = (
            (('PAYMENT', 'Payment')),
            (('DEFERRED', 'Deferred')),
        ),
        default = 'PAYMENT'),


    ModuleValue(PAYMENT_GROUP,
        'MODULE',
        description=_('Implementation module'),
        hidden=True,
        default = 'payment.modules.sagepay'),

    StringValue(PAYMENT_GROUP,
        'KEY',
        description=_("Module key"),
        hidden=True,
        default = 'SAGEPAY'),

    StringValue(PAYMENT_GROUP,
        'LABEL',
        description=_('English name for this group on the checkout screens'),
        default = 'Sage Pay Secure Payments',
        dummy = _('Sage Pay Secure Payments'), # Force this to appear on po-files
        help_text = _('This will be passed to the translation utility')),

    MultipleStringValue(PAYMENT_GROUP,
        'CREDITCHOICES',
        description=_('Available credit cards'),
        choices = (
                (('VISA','Visa Credit/Debit')),
                (('UKE','Visa Electron')),
                (('DELTA','Delta')),
                #(('AMEX','American Express')),  # not always available
                #(('DC','Diners Club')), # not always available
                (('MC','Mastercard')),
                (('MAESTRO','UK Maestro')),
                (('SOLO','Solo')),
                (('JCB','JCB')),
            ),
        default = ('VISA', 'MC')),

    StringValue(PAYMENT_GROUP,
        'VENDOR',
        description=_('Your Vendor Name'),
        default="",
        help_text= _("This is used for Live and Test transactions.  Make sure to add your server IP address to VSP, or it won't work.")),

    StringValue(PAYMENT_GROUP,
        'VENDOR_SIMULATOR',
        description=_('Simulator Vendor Name'),
        default="",
        help_text= _("This is used for Live and Test transactions.  Make sure to activate the VSP Simulator (you have to directly request it) and add your server IP address to the VSP Simulator, or it won't work.")),

    StringValue(PAYMENT_GROUP,
        'CURRENCY_CODE',
        description=_('Currency Code'),
        help_text=_('Currency code for Sage Pay transactions.'),
        default = 'GBP'),

    StringValue(PAYMENT_GROUP,
        'URL_BASE',
        description=_('The url base used for constructing urlpatterns which will use this module'),
        default = r'^sagepay/'),

    BooleanValue(PAYMENT_GROUP,
        'EXTRA_LOGGING',
        description=_("Verbose logs"),
        help_text=_("Add extensive logs during post."),
        default=False)
)
Exemplo n.º 10
0
config_register_list(

    StringValue(SHIPPING_GROUP,
        'METER_NUMBER',
        description=_('FedEx Meter Number'),
        help_text=_('Meter Number provided by FedEx.'),
        default=u''),
    
    StringValue(SHIPPING_GROUP,
        'ACCOUNT',
        description=_('FedEx Account Number'),
        help_text=_('FedEx Account Number.'),
        default=u''),
    
    StringValue(SHIPPING_GROUP,
        'AUTHENTICATION_KEY',
        description=_('FedEx Authentication Key'),
        help_text=_('FedEx Authentication Key.'),
        default=u''),
    
    StringValue(SHIPPING_GROUP,
        'AUTHENTICATION_PASSWORD',
        description=_('FedEx Authentication Password'),
        help_text=_('FedEx Authentication Password.'),
        default=u''),
    
    StringValue(SHIPPING_GROUP,
        'SHIPPER_REGION',
        description=_('The region you are sending your package from.'),
        help_text=_('i.e. the region the package leaves from.'),
        choices = (
            ('APAC',  'APAC'),
            ('CA',  'CA'),
            ('EMEA',       'EMEA'),
            ('LAC',  'LAC'),
            ('US',       'US'),
        ),
        default = 'US',
    ),
    
    MultipleStringValue(SHIPPING_GROUP,
        'SHIPPING_CHOICES',
        description=_('FedEx Shipping Choices Available to customers.'),
        choices = (
            ('EUROPE_FIRST_INTERNATIONAL_PRIORITY', 'Europe First International Priority'),
            ('FEDEX_1_DAY_FREIGHT',             'Fedex 1 Day Freight'),
            ('FEDEX_2_DAY',                     'Fedex 2 Day'),
            ('FEDEX_2_DAY_FREIGHT',             'Fedex 2 Day Freight'),
            ('FEDEX_3_DAY_FREIGHT',             'Fedex 3 Day Freight'),
            ('FEDEX_EXPRESS_SAVER',             'Fedex Express Saver'),
            ('FEDEX_GROUND',                    'Fedex Ground'),
            ('FIRST_OVERNIGHT',                 'First Overnight'),
            ('GROUND_HOME_DELIVERY',            'Ground Home Delivery'),
            ('INTERNATIONAL_ECONOMY',           'International Economy'),
            ('INTERNATIONAL_ECONOMY_FREIGHT',   'International Economy Freight'),
            ('INTERNATIONAL_FIRST',             'International First'),
            ('INTERNATIONAL_PRIORITY',          'International Priority'),
            ('INTERNATIONAL_PRIORITY_FREIGHT',  'International Priority Freight'),
            ('PRIORITY_OVERNIGHT',              'Priority Overnight'),
            ('SMART_POST',                      'Smart Post'),
            ('STANDARD_OVERNIGHT',              'Standard Overnight'),
            ('FEDEX_FREIGHT',                   'Fedex Freight'),
            ('FEDEX_NATIONAL_FREIGHT',          'Fedex National Freight'),
            ('INTERNATIONAL_GROUND',            'International Ground'),
        ),
        default = 'FEDEX_GROUND'
        ),

    StringValue(SHIPPING_GROUP,
        'PACKAGING',
        description = _('Type of container/package used to ship product.'),
        choices = (
            ('YOUR_PACKAGING','YOUR_PACKAGING'),
            ('FEDEX_10KG_BOX','FEDEX_10KG_BOX'),
            ('FEDEX_25KG_BOX','FEDEX_25KG_BOX'),
            ('FEDEX_BOX','FEDEX_BOX'),
            ('FEDEX_ENVELOPE','FEDEX_ENVELOPE'),
            ('FEDEX_PAK','FEDEX_PAK'),
            ('FEDEX_TUBE','FEDEX_TUBE'),
        ),
        default = 'YOUR_PACKAGING',
    ),
    
    StringValue(SHIPPING_GROUP,
        'DEFAULT_ITEM_WEIGHT',
        description = _("Default/Minimum Item Weight"),
        help_text = _("The default weight for items which lack a defined weight and the minimum an item is allowed to be, enter a positive value."),
        default = '0.5',
    ),
    StringValue(SHIPPING_GROUP,
        'DEFAULT_WEIGHT_UNITS',
        description = _("Default weight units"),
        choices = (
                    ('LB','LB'),
                    ('KG','KG'),
                   ),
        default = "LB"
    ),
    
    BooleanValue(SHIPPING_GROUP,
        'SINGLE_BOX',
        description=_("Single Box?"),
        help_text=_("Use just one box and ship by weight?  If no then every item will be sent in its own box."),
        default=True
    ),
    StringValue(SHIPPING_GROUP,
        'DROPOFF_TYPE',
        description = _("The method used to give the package to Fedex."),
         choices = (
            ('REGULAR_PICKUP','REGULAR_PICKUP'),
            ('BUSINESS_SERVICE_CENTER','BUSINESS_SERVICE_CENTER'),
            ('DROP_BOX','DROP_BOX'),
            ('REQUEST_COURIER','REQUEST_COURIER'),
            ('STATION', 'STATION'),
        ),
        help_text = _("Most users will keep the default Regular Pickup."),
        default = 'REGULAR_PICKUP',
    ),
    
    BooleanValue(SHIPPING_GROUP,
        'VERBOSE_LOG',
        description=_("Verbose logs"),
        help_text=_("Send the entire request and response to the log - for debugging help when setting up FedEx."),
        default=False),
    
    BooleanValue(SHIPPING_GROUP,
        'TEST_SERVER',
        description=_("Use test server?"),
        help_text=_("Check if you want to use the fedex test servers rather than the production server."),
        default=True
        ),
)
Exemplo n.º 11
0
config_register_list(

    StringValue(SHIPPING_GROUP,
        'XML_KEY',
        description=_("UPS XML Access Key"),
        help_text=_("XML Access Key Provided by UPS"),
        default=""),

    StringValue(SHIPPING_GROUP,
        'USER_ID',
        description=_("UPS User ID"),
        help_text=_("User ID provided by UPS site."),
        default=""),

    StringValue(SHIPPING_GROUP,
        'ACCOUNT',
        description=_("UPS Account Number"),
        help_text=_("UPS Account Number."),
        default=""),

    StringValue(SHIPPING_GROUP,
        'USER_PASSWORD',
        description=_("UPS User Password"),
        help_text=_("User password provided by UPS site."),
        default=""),

    MultipleStringValue(SHIPPING_GROUP,
        'UPS_SHIPPING_CHOICES',
        description=_("UPS Shipping Choices Available to customers. These are valid domestic codes only."),
        choices = (
            (('01', 'Next Day Air')),
            (('02', 'Second Day Air')),
            (('03', 'Ground')),
            (('12', '3 Day Select')),
            (('13', 'Next Day Air Saver')),
            (('14', 'Next Day Air Early AM')),
            (('59', '2nd Day Air AM')),
        ),
        default = ('03',)),

     DecimalValue(SHIPPING_GROUP,
        'HANDLING_FEE',
        description=_("Handling Fee"),
        help_text=_("The cost of packaging and getting the package off"),
        default=Decimal('0.00')),

    StringValue(SHIPPING_GROUP,
        'SHIPPING_CONTAINER',
        description=_("Type of container used to ship product."),
        choices = (
            (('00', 'Unknown')),
            (('01', 'UPS LETTER')),
            (('02', 'PACKAGE / CUSTOMER SUPPLIED')),
        ),
        default = "00"),

    BooleanValue(SHIPPING_GROUP,
        'SINGLE_BOX',
        description=_("Single Box?"),
        help_text=_("Use just one box and ship by weight?  If no then every item will be sent in its own box."),
        default=True),

    BooleanValue(SHIPPING_GROUP,
        'TIME_IN_TRANSIT',
        description=_("Time in Transit?"),
        help_text=_("Use the UPS Time In Transit API? It is slower but delivery dates are more accurate."),
        default=False),

    StringValue(SHIPPING_GROUP,
        'PICKUP_TYPE',
        description=_("UPS Pickup option."),
        choices = (
            (('01', 'DAILY PICKUP')),
            (('03', 'CUSTOMER COUNTER')),
            (('06', 'ONE TIME PICKUP')),
            (('07', 'ON CALL PICKUP')),
            ),
        default = "07"),

    BooleanValue(SHIPPING_GROUP,
        'LIVE',
        description=_("Access production UPS server"),
        help_text=_("Use this when your store is in production."),
        default=False),

    StringValue(SHIPPING_GROUP,
        'CONNECTION',
        description=_("Submit to URL"),
        help_text=_("Address to submit live transactions."),
        default="https://onlinetools.ups.com/ups.app/xml/Rate"),

    StringValue(SHIPPING_GROUP,
        'CONNECTION_TEST',
        description=_("Submit to TestURL"),
        help_text=_("Address to submit test transactions."),
        default="https://wwwcie.ups.com/ups.app/xml/Rate"),

    BooleanValue(SHIPPING_GROUP,
        'VERBOSE_LOG',
        description=_("Verbose logs"),
        help_text=_("Send the entire request and response to the log - for debugging help when setting up UPS."),
        default=False)

)
Exemplo n.º 12
0
config_register_list(
    StringValue(
        PAYMENT_GROUP,
        'CART_XML_TEMPLATE',
        description=_("XML Template"),
        help_text=
        _("The XML template to use when submitting to Google. Probably you should not change this."
          ),
        default="shop/checkout/google/cart.xml"),
    StringValue(PAYMENT_GROUP,
                'CURRENCY_CODE',
                description=_('Currency Code'),
                help_text=_('Currency code for Google Checkout transactions.'),
                default='USD'),
    StringValue(PAYMENT_GROUP,
                'CHECKOUT_BUTTON_URL',
                description=_('Checkout Button URL'),
                default="http://checkout.google.com/buttons/checkout.gif"),
    StringValue(PAYMENT_GROUP,
                'CHECKOUT_BUTTON_SIZE',
                description=_('Checkout Button Size'),
                choices=(('SMALL', _('Small')), ('MEDIUM', _('Medium')),
                         ('LARGE', _('Large'))),
                default='MEDIUM'),
    StringValue(
        PAYMENT_GROUP,
        'POST_URL',
        description=_('Post URL'),
        help_text=_('The Google URL for real transaction posting.'),
        default=
        "https://checkout.google.com/api/checkout/v2/checkout/Merchant/%(MERCHANT_ID)s"
    ),
    StringValue(
        PAYMENT_GROUP,
        'POST_TEST_URL',
        description=_('Post URL'),
        help_text=_('The Google URL for test transaction posting.'),
        default=
        "https://sandbox.google.com/checkout/api/checkout/v2/checkout/Merchant/%(MERCHANT_ID)s"
    ),
    StringValue(PAYMENT_GROUP,
                'MERCHANT_ID',
                description=_('Merchant ID'),
                default=""),
    StringValue(PAYMENT_GROUP,
                'MERCHANT_KEY',
                description=_('Merchant Key'),
                default=""),
    StringValue(PAYMENT_GROUP,
                'MERCHANT_TEST_ID',
                description=_('Merchant Test ID'),
                default=""),
    StringValue(PAYMENT_GROUP,
                'MERCHANT_TEST_KEY',
                description=_('Merchant Test Key'),
                default=""),
    BooleanValue(PAYMENT_GROUP,
                 'LIVE',
                 description=_("Accept real payments"),
                 help_text=_("False if you want to be in test mode"),
                 default=False),
    ModuleValue(PAYMENT_GROUP,
                'MODULE',
                description=_('Implementation module'),
                hidden=True,
                default='payment.modules.google'),
    StringValue(PAYMENT_GROUP,
                'KEY',
                description=_("Module key"),
                hidden=True,
                default='GOOGLE'),
    StringValue(
        PAYMENT_GROUP,
        'LABEL',
        description=_('English name for this group on the checkout screens'),
        default='Google Checkout',
        dummy=_('Google Checkout'),  # Force this to appear on po-files
        help_text=_('This will be passed to the translation utility')),
    StringValue(
        PAYMENT_GROUP,
        'URL_BASE',
        description=
        _('The url base used for constructing urlpatterns which will use this module'
          ),
        default='^google/'),
    BooleanValue(PAYMENT_GROUP,
                 'EXTRA_LOGGING',
                 description=_("Verbose logs"),
                 help_text=_("Add extensive logs during post."),
                 default=False))
Exemplo n.º 13
0
config_register_list(

    StringValue(PAYMENT_GROUP,
        'CART_XML_TEMPLATE',
        description=_("XML Template"),
        help_text=_("The XML template to use when submitting to Google. Probably you should not change this."),
        default = "shop/checkout/google/cart.xml"),

    StringValue(PAYMENT_GROUP,
        'CURRENCY_CODE',
        description=_('Currency Code'),
        help_text=_('Currency code for Google Checkout transactions.'),
        default = 'USD'),

    StringValue(PAYMENT_GROUP,
        'CHECKOUT_BUTTON_URL',
        description=_('Checkout Button URL'),
        default="http://checkout.google.com/buttons/checkout.gif"),

    StringValue(PAYMENT_GROUP,
        'CHECKOUT_BUTTON_SIZE',
        description=_('Checkout Button Size'),
        choices=(
            ('SMALL', _('Small')),
            ('MEDIUM', _('Medium')),
            ('LARGE', _('Large'))),
        default='MEDIUM'),

    StringValue(PAYMENT_GROUP,
        'POST_URL',
        description=_('Post URL'),
        help_text=_('The Google URL for real transaction posting.'),
        default="https://checkout.google.com/api/checkout/v2/checkout/Merchant/%(MERCHANT_ID)s"),

    StringValue(PAYMENT_GROUP,
        'POST_TEST_URL',
        description=_('Post URL'),
        help_text=_('The Google URL for test transaction posting.'),
        default="https://sandbox.google.com/checkout/api/checkout/v2/checkout/Merchant/%(MERCHANT_ID)s"),

    StringValue(PAYMENT_GROUP,
        'MERCHANT_ID',
        description=_('Merchant ID'),
        default=""),

    StringValue(PAYMENT_GROUP,
        'MERCHANT_KEY',
        description=_('Merchant Key'),
        default=""),

    StringValue(PAYMENT_GROUP,
        'MERCHANT_TEST_ID',
        description=_('Merchant Test ID'),
        default=""),

    StringValue(PAYMENT_GROUP,
        'MERCHANT_TEST_KEY',
        description=_('Merchant Test Key'),
        default=""),

    BooleanValue(PAYMENT_GROUP,
        'LIVE',
        description=_("Accept real payments"),
        help_text=_("False if you want to be in test mode"),
        default=False),

    ModuleValue(PAYMENT_GROUP,
        'MODULE',
        description=_('Implementation module'),
        hidden=True,
        default = 'payment.modules.google'),

    StringValue(PAYMENT_GROUP,
        'KEY',
        description=_("Module key"),
        hidden=True,
        default = 'GOOGLE'),

    StringValue(PAYMENT_GROUP,
        'LABEL',
        description=_('English name for this group on the checkout screens'),
        default = 'Google Checkout',
        dummy = _('Google Checkout'), # Force this to appear on po-files
        help_text = _('This will be passed to the translation utility')),

    StringValue(PAYMENT_GROUP,
        'URL_BASE',
        description=_('The url base used for constructing urlpatterns which will use this module'),
        default = '^google/'),

    BooleanValue(PAYMENT_GROUP,
        'EXTRA_LOGGING',
        description=_("Verbose logs"),
        help_text=_("Add extensive logs during post."),
        default=False)

)
Exemplo n.º 14
0
from livesettings.functions import config_register_list
from livesettings.values import ConfigurationGroup, IntegerValue, BooleanValue
from django.utils.translation import ugettext_lazy as _

THUMB_GROUP = ConfigurationGroup('THUMBNAIL', _('Thumbnail Settings'))

config_register_list(
    IntegerValue(
        THUMB_GROUP,
        'IMAGE_QUALITY',
        description=_("Thumbnail quality"),
        help_text=
        _("Use a 1-100 value here, which will change the quality of JPG thumbnails created for products and categories."
          ),
        default=75,
        ordering=0),
    BooleanValue(THUMB_GROUP,
                 'RENAME_IMAGES',
                 description=_("Rename product images?"),
                 help_text=_("Automatically rename product images on upload?"),
                 default=True))
Exemplo n.º 15
0
config_register_list(
    StringValue(PAYMENT_GROUP,
                'KEY',
                description=_("Module key"),
                hidden=True,
                default='TRUSTCOMMERCE'),
    ModuleValue(PAYMENT_GROUP,
                'MODULE',
                description=_('Implementation module'),
                hidden=True,
                default='payment.modules.trustcommerce'),
    BooleanValue(PAYMENT_GROUP,
                 'AVS',
                 description=_("Use Address Verification System (AVS)?"),
                 default=False),
    BooleanValue(PAYMENT_GROUP,
                 'LIVE',
                 description=_("Accept real payments"),
                 help_text=_("False if you want to be in test mode"),
                 default=False),
    StringValue(
        PAYMENT_GROUP,
        'AUTH_TYPE',
        description=_("Type of authorization to perform."),
        help_text=_("Refer to manual for details on the different types."),
        default='sale',
        choices=[('sale', _('Sale')), ('preauth', _('Preauth'))]),
    StringValue(
        PAYMENT_GROUP,
        'LABEL',
        description=_('English name for this group on the checkout screens'),
        default='Credit Cards',
        dummy=_('Credit Cards'),  # Force this to appear on po-files
        help_text=_('This will be passed to the translation utility')),
    StringValue(
        PAYMENT_GROUP,
        'URL_BASE',
        description=
        _('The url base used for constructing urlpatterns which will use this module'
          ),
        default=r'^credit/'),
    MultipleStringValue(PAYMENT_GROUP,
                        'CREDITCHOICES',
                        description=_('Available credit cards'),
                        choices=((('American Express',
                                   'American Express')), (('Visa', 'Visa')),
                                 (('Mastercard',
                                   'Mastercard')), (('Discover', 'Discover'))),
                        default=('Visa', 'Mastercard', 'Discover')),
    StringValue(PAYMENT_GROUP,
                'LOGIN',
                description=_('Your TrustCommerce login'),
                default=""),
    StringValue(PAYMENT_GROUP,
                'PASSWORD',
                description=_('Your TrustCommerce password'),
                default=""),
    BooleanValue(PAYMENT_GROUP,
                 'EXTRA_LOGGING',
                 description=_("Verbose logs"),
                 help_text=_("Add extensive logs during post."),
                 default=False))
Exemplo n.º 16
0
config_register_list(
    PositiveIntegerValue(PRODUCT_GROUP,
        'NUM_DISPLAY',
        description=_("Total featured"),
        help_text=_("Total number of featured items to display"),
        default=20
    ),

    PositiveIntegerValue(PRODUCT_GROUP,
        'NUM_PAGINATED',
        description=_("Number featured"),
        help_text=_("Number of featured items to display on each page"),
        default=10
    ),

    MultipleStringValue(PRODUCT_GROUP,
        'MEASUREMENT_SYSTEM',
        description=_("Measurement System"),
        help_text=_("Default measurement system to use for products."),
        choices=[('metric',_('Metric')),
                    ('imperial',_('Imperial'))],
        default="imperial"
    ),

    BooleanValue(PRODUCT_GROUP,
        'NO_STOCK_CHECKOUT',
        description=_("Allow checkout with 0 inventory?"),
        help_text=_("If yes, then customers can buy even if your inventory is 0 for a product."),
        default=True
    ),

    BooleanValue(PRODUCT_GROUP,
        'RANDOM_FEATURED',
        description= _("Random Display"),
        help_text= _("Enable random display of featured products on home page"),
        default=False
    ),

    BooleanValue(PRODUCT_GROUP,
        'TRACK_INVENTORY',
        description=_("Track inventory levels?"),
        help_text=_("If no, then inventory will not be tracked for products sold."),
        default=True
    ),
    
    BooleanValue(PRODUCT_GROUP,
        'SHOW_NO_PHOTO_IN_CATEGORY',
        description=_("Display Photo Not Available Image in the category page?"),
        help_text=_("If yes, then a Photo Not Available Image will be shown on the category page."),
        default=False
    ),
)
Exemplo n.º 17
0
from livesettings.values import StringValue, DecimalValue
from livesettings.functions import config_register_list, config_get, config_get_group

SHIP_MODULES = config_get('SHIPPING', 'MODULES')

# No need to add the choice, since it is in by default
# SHIP_MODULES.add_choice(('shipping.modules.per', _('Per piece')))

SHIPPING_GROUP = config_get_group('SHIPPING')

config_register_list(
    DecimalValue(SHIPPING_GROUP,
                 'PER_RATE',
                 description=_("Per item price"),
                 requires=SHIP_MODULES,
                 requiresvalue='shipping.modules.per',
                 default="4.00"),
    StringValue(SHIPPING_GROUP,
                'PER_SERVICE',
                description=_("Per Item Shipping Service"),
                help_text=_("Shipping service used with per item shipping"),
                requires=SHIP_MODULES,
                requiresvalue='shipping.modules.per',
                default="U.S. Mail"),
    StringValue(SHIPPING_GROUP,
                'PER_DAYS',
                description=_("Per Item Delivery Days"),
                requires=SHIP_MODULES,
                requiresvalue='shipping.modules.per',
                default="3 - 4 business days"))
Exemplo n.º 18
0
config_register_list(

    # Texbox - string or many other types
    StringValue(GR1_BOX, 'my_StringValue', description='Textbox', ordering=1, default='Orange',
                help_text='StringValue and many different types looks similar'),

    # Textarea - LongStringValue can be longer then 255 characters
    LongStringValue(GR1_BOX, 'my_LongStringValue', description='Textarea', ordering=2, default='something',
                    help_text='Long String value'),

    # Checkbox - Boolean
    BooleanValue(GR1_BOX, 'my_BooleanValue', description='Check box', ordering=3, default=True,
                 help_text='Boolean value'),

    # Combobox - String value with choices
    StringValue(GR1_BOX, 'my_StringValue_combobox', description='Combobox', ordering=4,
                help_text='String value with choices',
                default='AUTO',
                choices=(('ELEPHANT', _('Elephant')), ('ANT', _('Ant')), ('AUTO', _('Autodetect')),)),

    # Listbox with multiple selection - MultipleStringValue with choices
    MultipleStringValue(GR1_BOX, 'my_MultipleStringValue',
                        description='Listbox - e.g. Required Fields', ordering=5,
                        help_text='MultipleStringValue with choices',
                        default=['email', 'first_name'],
                        choices=(
                            ('email', _("Email")),
                            ('title', _("Title")),
                            ('first_name', _("First name")),
                            ('last_name', _("Last name")),
                        )),

    # Password displayed like '****'.
    PasswordValue(GR1_BOX, 'my_PasswordValue', description='Password value', ordering=6,
                  default='only to see *** now', render_value=True),
    # If render_value=True (default) the widget will be pre-filled with an actual password value displayed like "****".
    # If render_value=False, the password field is not pre-filled with any value
    # and an actual value can be removed by writing space to the field (which is converted to empty string).

)
Exemplo n.º 19
0
config_register_list(

    # Texbox - string or many other types
    StringValue(
        GR1_BOX,
        'my_StringValue',
        description='Textbox',
        ordering=1,
        default='Orange',
        help_text='StringValue and many different types looks similar'),

    # Textarea - LongStringValue can be longer then 255 characters
    LongStringValue(GR1_BOX,
                    'my_LongStringValue',
                    description='Textarea',
                    ordering=2,
                    default='something',
                    help_text='Long String value'),

    # Checkbox - Boolean
    BooleanValue(GR1_BOX,
                 'my_BooleanValue',
                 description='Check box',
                 ordering=3,
                 default=True,
                 help_text='Boolean value'),

    # Combobox - String value with choices
    StringValue(GR1_BOX,
                'my_StringValue_combobox',
                description='Combobox',
                ordering=4,
                help_text='String value with choices',
                default='AUTO',
                choices=(
                    ('ELEPHANT', _('Elephant')),
                    ('ANT', _('Ant')),
                    ('AUTO', _('Autodetect')),
                )),

    # Listbox with multiple selection - MultipleStringValue with choices
    MultipleStringValue(GR1_BOX,
                        'my_MultipleStringValue',
                        description='Listbox - e.g. Required Fields',
                        ordering=5,
                        help_text='MultipleStringValue with choices',
                        default=['email', 'first_name'],
                        choices=(
                            ('email', _("Email")),
                            ('title', _("Title")),
                            ('first_name', _("First name")),
                            ('last_name', _("Last name")),
                        )),

    # Password displayed like '****'.
    PasswordValue(GR1_BOX,
                  'my_PasswordValue',
                  description='Password value',
                  ordering=6,
                  default='only to see *** now',
                  render_value=True),
    # If render_value=True (default) the widget will be pre-filled with an actual password value displayed like "****".
    # If render_value=False, the password field is not pre-filled with any value
    # and an actual value can be removed by writing space to the field (which is converted to empty string).
)
Exemplo n.º 20
0
config_register_list(

    StringValue(SHIPPING_GROUP,
        'CPCID',
        description=_('Canada Post Merchant ID'),
        help_text=_('The merchant ID assigned by Canada Post'),
        default=u'CPC_DEMO_XML'),

    #http://sellonline.canadapost.ca/DevelopersResources/protocolV3/ProductID.html
    MultipleStringValue(SHIPPING_GROUP,
        'CANADAPOST_SHIPPING_CHOICES',
        description=_("Canada Post shipping choices available to customers."),
        choices = (
            (('1010', 'Domestic - Regular')),
            (('1020', 'Domestic - Expedited')),
            (('1030', 'Domestic - Xpresspost')),            
            (('1040', 'Domestic - Priority Courier')),
            (('2005', 'US - Small Packets Surface')),
            (('2015', 'US - Small Packets Air')),
            (('2020', 'US - Expedited US Business Contract')),
            (('2025', 'US - Expedited US Commercial')),
            (('2030', 'US - Xpress USA')),
            (('2040', 'US - Priority Worldwide USA')),
            (('2050', 'US - Priority Worldwide PAK USA')),
            (('3005', 'Int`l - Small Packets Surface')),
            (('3010', 'Int`l - Surface International')),
            (('3015', 'Int`l - Small Packets Air')),
            (('3020', 'Int`l - Air International')),
            (('3025', 'Int`l - Xpresspost International')),
            (('3040', 'Int`l - Priority Worldwide INTL')),
            (('3050', 'Int`l - Priority Worldwide PAK INTL')),
        ),
        default = ('1010','1020','1030','1040',)),

    StringValue(SHIPPING_GROUP,
        'SHIPPING_CONTAINER',
        description=_("Type of container used to ship product."),
        choices = (
            (('00', 'Unknown')),
            (('01', 'Variable')),
            (('02', 'Rectangular')),
        ),
        default = u"00"),

    BooleanValue(SHIPPING_GROUP,
        'LIVE',
        description=_('Access production Canada Post server'),
        help_text=_('Use this when your store is in production.'),
        default=False),

    StringValue(SHIPPING_GROUP,
        'CONNECTION',
        description=_('Submit to URL'),
        help_text=_('Canada Post Sell Online server to submit live transactions.'),
        default='http://sellonline.canadapost.ca:30000'),

    StringValue(SHIPPING_GROUP,
        'CONNECTION_TEST',
        description=_('Submit to TestURL'),
        help_text=_('Canada Post Sell Online server to submit test transactions.'),
        default='http://sellonline.canadapost.ca:30000'),

    StringValue(SHIPPING_GROUP,
        'TURN_AROUND_TIME',
        description=_('Turn around time'),
        help_text=_('Turn around time in hours. If declared here, this parameter \
                    will overwrite the one defined in the merchant\'s profile'),
        default='24'),

    BooleanValue(SHIPPING_GROUP,
        'VERBOSE_LOG',
        description=_("Verbose logs"),
        help_text=_("Send the entire request and response to the log - for debugging help when setting up Canada Post."),
        default=False)
)
Exemplo n.º 21
0
config_register_list(
    StringValue(PAYMENT_GROUP,
                'CURRENCY_CODE',
                description=_('Currency Code'),
                help_text=_('Currency code for Paypal transactions.'),
                default='USD'),
    StringValue(PAYMENT_GROUP,
                'POST_URL',
                description=_('Post URL'),
                help_text=_('The Paypal URL for real transaction posting.'),
                default="https://www.paypal.com/cgi-bin/webscr"),
    StringValue(PAYMENT_GROUP,
                'POST_TEST_URL',
                description=_('Post URL'),
                help_text=_('The Paypal URL for test transaction posting.'),
                default="https://www.sandbox.paypal.com/cgi-bin/webscr"),
    StringValue(PAYMENT_GROUP,
                'BUSINESS',
                description=_('Paypal account email'),
                help_text=_('The email address for your paypal account'),
                default=""),
    StringValue(
        PAYMENT_GROUP,
        'BUSINESS_TEST',
        description=_('Paypal test account email'),
        help_text=_('The email address for testing your paypal account'),
        default=""),
    StringValue(
        PAYMENT_GROUP,
        'RETURN_ADDRESS',
        description=_('Return URL'),
        help_text=
        _('Where Paypal will return the customer after the purchase is complete.  This can be a named url and defaults to the standard checkout success.'
          ),
        default="satchmo_checkout-success"),
    BooleanValue(PAYMENT_GROUP,
                 'LIVE',
                 description=_("Accept real payments"),
                 help_text=_("False if you want to be in test mode"),
                 default=False),
    ModuleValue(PAYMENT_GROUP,
                'MODULE',
                description=_('Implementation module'),
                hidden=True,
                default='payment.modules.paypal'),
    StringValue(PAYMENT_GROUP,
                'KEY',
                description=_("Module key"),
                hidden=True,
                default='PAYPAL'),
    StringValue(
        PAYMENT_GROUP,
        'LABEL',
        description=_('English name for this group on the checkout screens'),
        default='PayPal',
        dummy=_('PayPal'),  # Force this to appear on po-files
        help_text=_('This will be passed to the translation utility')),
    StringValue(
        PAYMENT_GROUP,
        'URL_BASE',
        description=
        _('The url base used for constructing urlpatterns which will use this module'
          ),
        default='^paypal/'),
    BooleanValue(PAYMENT_GROUP,
                 'EXTRA_LOGGING',
                 description=_("Verbose logs"),
                 help_text=_("Add extensive logs during post."),
                 default=False))
Exemplo n.º 22
0
config_register_list(
    StringValue(
        PAYMENT_GROUP,
        'CONNECTION',
        description=_("Submit to URL"),
        help_text=_("""This is the address to submit live transactions."""),
        default='https://secure.authorize.net/gateway/transact.dll'),
    StringValue(
        PAYMENT_GROUP,
        'CONNECTION_TEST',
        description=_("Submit to Test URL"),
        help_text=
        ("""If you have a test account with authorize.net and you log in through
https://test.authorize.net/gateway/transact.dll, then you should use the default 
test URL.  If you do not have a test account you will get an Error 13 message 
unless you change the URL to https://secure.authorize.net/gateway/transact.dll.  
You will also need to login in to authorize.net and make sure your account has 
test mode turned on.
"""),
        default='https://test.authorize.net/gateway/transact.dll'),
    BooleanValue(
        PAYMENT_GROUP,
        'LIVE',
        description=_("Accept real payments"),
        help_text=
        _("False if you want to submit to the test urls.  NOTE: If you are testing, then you can use the cc# 4222222222222 to force a bad credit card response.  If you use that number and a ccv of 222, that will force a bad ccv response from authorize.net"
          ),
        default=False),
    BooleanValue(
        PAYMENT_GROUP,
        'SIMULATE',
        description=_("Force a test post?"),
        help_text=
        _("True if you want to submit to the live url using a test flag, which won't be accepted."
          ),
        default=False),
    ModuleValue(PAYMENT_GROUP,
                'MODULE',
                description=_('Implementation module'),
                hidden=True,
                default='payment.modules.authorizenet'),
    StringValue(PAYMENT_GROUP,
                'KEY',
                description=_("Module key"),
                hidden=True,
                default='AUTHORIZENET'),
    StringValue(
        PAYMENT_GROUP,
        'LABEL',
        description=_('English name for this group on the checkout screens'),
        default='Credit Cards',
        dummy=_('Credit Cards'),  # Force this to appear on po-files
        help_text=_('This will be passed to the translation utility')),
    StringValue(
        PAYMENT_GROUP,
        'URL_BASE',
        description=
        _('The url base used for constructing urlpatterns which will use this module'
          ),
        default=r'^credit/'),
    MultipleStringValue(PAYMENT_GROUP,
                        'CREDITCHOICES',
                        description=_('Available credit cards'),
                        choices=((('American Express',
                                   'American Express')), (('Visa', 'Visa')),
                                 (('Mastercard',
                                   'Mastercard')), (('Discover', 'Discover'))),
                        default=('Visa', 'Mastercard', 'Discover')),
    StringValue(PAYMENT_GROUP,
                'LOGIN',
                description=_('Your authorize.net transaction login'),
                default=""),
    StringValue(PAYMENT_GROUP,
                'TRANKEY',
                description=_('Your authorize.net transaction key'),
                default=""),
    BooleanValue(
        PAYMENT_GROUP,
        'CAPTURE',
        description=_('Capture Payment immediately?'),
        default=True,
        help_text=
        _('IMPORTANT: If false, a capture attempt will be made when the order is marked as shipped.'
          )),
    BooleanValue(PAYMENT_GROUP,
                 'EXTRA_LOGGING',
                 description=_("Verbose logs"),
                 help_text=_("Add extensive logs during post."),
                 default=False))
Exemplo n.º 23
0
config_register_list(

    BooleanValue(PAYMENT_GROUP,
        'AUTH_EARLY',
        description=_("Early AUTH"),
        help_text=_("Where possible, Authenticate on the card entry page.  This causes an immediate $.01 AUTH and release, allowing errors with the card to show on the card entry page instead of on the confirmation page.  Note that this is only supported for payment modules that can do Authorizations.  It will be silently ignored for any other processors."),
        default=False),

    BooleanValue(PAYMENT_GROUP,
        'COUNTRY_MATCH',
        description=_("Country match required?"),
        help_text=_("If True, then customers may not have different countries for shipping and billing."),
        default=True),

    DecimalValue(PAYMENT_GROUP,
        'MINIMUM_ORDER',
        description=_("Minimum Order"),
        help_text=_("""The minimum cart total before checkout is allowed."""),
        default="0.00"),

    BooleanValue(PAYMENT_GROUP,
        'STORE_CREDIT_NUMBERS',
        description=_("Save Credit Card Numbers"),
        help_text=_("If False, then the credit card will never be written to disk.  For PCI compliance, this is required unless you have your database server on a separate server not connected to the internet."),
        default=False),

    PositiveIntegerValue(PAYMENT_GROUP,
        'CC_NUM_YEARS',
        description=_("Number of years to display for CC expiration"),
        help_text=_("Number of years that will be added to today's year for the CC expiration drop down"),
        default=10),

    BooleanValue(PAYMENT_GROUP,
        'USE_DISCOUNTS',
        description=_("Use discounts"),
        help_text=_("""If disabled, customers will not be asked for any discount codes."""),
        default=True)
)
Exemplo n.º 24
0
config_register_list(
    StringValue(
        PAYMENT_GROUP,
        'CONNECTION',
        description=_("WSDL URL"),
        help_text=_("""This is the address to submit live transactions."""),
        default=
        'https://ics2ws.ic3.com/commerce/1.x/transactionProcessor/CyberSourceTransaction_1.26.wsdl'
    ),
    StringValue(
        PAYMENT_GROUP,
        'CONNECTION_TEST',
        description=_("Submit to Test WSDL URL"),
        help_text=("""This is the address to submit test transactions"""),
        default=
        'https://ics2wstest.ic3.com/commerce/1.x/transactionProcessor/CyberSourceTransaction_1.26.wsdl'
    ),
    BooleanValue(PAYMENT_GROUP,
                 'LIVE',
                 description=_("Accept real payments"),
                 help_text=_("False if you want to be in test mode"),
                 default=False),
    ModuleValue(PAYMENT_GROUP,
                'MODULE',
                description=_('Implementation module'),
                hidden=True,
                default='payment.modules.cybersource'),
    StringValue(PAYMENT_GROUP,
                'KEY',
                description=_("Module key"),
                hidden=True,
                default='CYBERSOURCE'),
    StringValue(
        PAYMENT_GROUP,
        'LABEL',
        description=_('English name for this group on the checkout screens'),
        default='Credit Cards',
        dummy=_('Credit Cards'),  # Force this to appear on po-files
        help_text=_('This will be passed to the translation utility')),
    StringValue(PAYMENT_GROUP,
                'CURRENCY_CODE',
                description=_('Currency Code'),
                help_text=_('Currency code for Cybersource transactions.'),
                default='USD'),
    StringValue(
        PAYMENT_GROUP,
        'URL_BASE',
        description=
        _('The url base used for constructing urlpatterns which will use this module'
          ),
        default=r'^credit/'),
    MultipleStringValue(PAYMENT_GROUP,
                        'CREDITCHOICES',
                        description=_('Available credit cards'),
                        choices=((('American Express',
                                   'American Express')), (('Visa', 'Visa')),
                                 (('Mastercard',
                                   'Mastercard')), (('Discover', 'Discover'))),
                        default=('Visa', 'Mastercard', 'Discover')),
    StringValue(PAYMENT_GROUP,
                'MERCHANT_ID',
                description=_('Your Cybersource merchant ID'),
                default=""),
    LongStringValue(PAYMENT_GROUP,
                    'TRANKEY',
                    description=_('Your Cybersource transaction key'),
                    default=""),
    BooleanValue(PAYMENT_GROUP,
                 'EXTRA_LOGGING',
                 description=_("Verbose logs"),
                 help_text=_("Add extensive logs during post."),
                 default=False))
Exemplo n.º 25
0
config_register_list(

StringValue(SHIPPING_GROUP,
    'USER_ID',
    description=_("USPS  Username"),
    help_text=_("User ID provided by USPS site."),
    default=u""),

StringValue(SHIPPING_GROUP,
    'USER_PASSWORD',
    description=_("USPS Password"),
    help_text=_("User password provided by USPS site."),
    default=u""),

DecimalValue(SHIPPING_GROUP,
    'HANDLING_FEE',
    description=_("Handling Fee"),
    help_text=_("The cost of packaging and taking order to post office"),
    default=Decimal('0.00')),

MultipleStringValue(SHIPPING_GROUP,
    'USPS_SHIPPING_CHOICES',
    description=_("USPS Shipping Choices Available to customers."),
    choices = (
        (('0', 'First Class')),
        (('1', 'Priority Mail')),
        (('16', 'Priority Mail Flat-Rate Envelope')),
        (('17', 'Priority Mail Flat-Rate Box')),
        (('22', 'Priority Mail Large Flat-Rate Box')),
        (('3', 'Express Mail')),
        (('13', 'Express Mail Flat-Rate Envelope')),
        (('4', 'Parcel Post')),
        (('5', 'Bound Printed Matter')),
        (('6', 'Media Mail')),
        (('7', 'Library Mail')),
        
        # INTERNATIONAL CODES
        
        (('14', 'Int`l: First Class Mail International Large Envelope')),
        (('15', 'Int`l: First Class Mail International Package')),
        (('1', 'Int`l: Express Mail International (EMS)')),
        (('4', 'Int`l: Global Express Guaranteed')),
        (('6', 'Int`l: Global Express Guaranteed Non-Document Rectangular')),
        (('7', 'Int`l: Global Express Guaranteed Non-Document Non-Rectangular')),
        (('10', 'Int`l: Express Mail International (EMS) Flat-Rate Envelope')),
        (('2', 'Int`l: Priority Mail International')),
        (('8', 'Int`l: Priority Mail International Flat-Rate Envelope')),
        (('9', 'Int`l: Priority Mail International Flat-Rate Box')),
        (('11', 'Int`l: Priority Mail International Large Flat-Rate Box')),
        (('12', 'Int`l: USPS GXG Envelopes')),
    ),
    default = ('3',)),

StringValue(SHIPPING_GROUP,
    'SHIPPING_CONTAINER',
    description=_("Type of container used to ship product."),
    choices = (
        (('00', 'Unknown')),
        (('01', 'Variable')),
        (('02', 'Flat rate box')),
        (('03', 'Flat rate envelope')),
        (('04', 'Rectangular')),
        (('05', 'Non-rectangular')),
    ),
    default = u"01"),

BooleanValue(SHIPPING_GROUP,
    'LIVE',
    description=_("Access production USPS server"),
    help_text=_("Use this when your store is in production."),
    default=False),

StringValue(SHIPPING_GROUP,
    'CONNECTION',
    description=_("Submit to URL"),
    help_text=_("Address to submit live transactions."),
    default="http://production.shippingapis.com/ShippingAPI.dll"),

StringValue(SHIPPING_GROUP,
    'CONNECTION_TEST',
    description=_("Submit to Test URL"),
    help_text=_("Address to submit test transactions."),
    default="http://testing.shippingapis.com/ShippingAPITest.dll"),

BooleanValue(SHIPPING_GROUP,
    'VERBOSE_LOG',
    description=_("Verbose logs"),
    help_text=_("Send the entire request and response to the log - for debugging help when setting up USPS."),
    default=False),

#ModuleValue(SHIPPING_GROUP,
#    'MODULE',
#    description=_('Implementation module'),
#    hidden=True,
#    default = 'shipping.modules.ups'),

)
Exemplo n.º 26
0
config_register_list(
    StringValue(PAYMENT_GROUP,
        'CHARSET',
        description=_("Character Set"),
        default="BCDFGHKPRSTVWXYZbcdfghkprstvwxyz23456789",
        help_text=_("The characters allowable in randomly-generated certficate codes.  No vowels means no unfortunate words.")),

    StringValue(PAYMENT_GROUP,
        'KEY',
        description=_("Module key"),
        hidden=True,
        default = 'GIFTCERTIFICATE'),

    StringValue(PAYMENT_GROUP,
        'FORMAT',
        description=_('Code format'),
        default="^^^^-^^^^-^^^^",
        help_text=_("Enter the format for your cert code.  Use a '^' for the location of a randomly generated character.")),

    ModuleValue(PAYMENT_GROUP,
        'MODULE',
        description=_('Implementation module'),
        hidden=True,
        default = 'payment.modules.giftcertificate'),

    StringValue(PAYMENT_GROUP,
        'LABEL',
        description=_('English name for this group on the checkout screens'),
        default = 'Gift Certificate',
        dummy = _('Gift Certificate'), # Force this to appear on po-files
        help_text = _('This will be passed to the translation utility')),

    BooleanValue(PAYMENT_GROUP,
        'LIVE',
        description=_("Accept real payments"),
        help_text=_("False if you want to be in test mode"),
        default=False),

    BooleanValue(PAYMENT_GROUP,
        'EMAIL_RECIPIENT',
        description=_("Send email to recipients"),
        help_text=_("If the purchaser includes an email address, should we send a notification to them?"),
        default=True),

    StringValue(PAYMENT_GROUP,
        'URL_BASE',
        description=_('The url base used for constructing urlpatterns which will use this module'),
        default = r'^giftcertificate/'),

    BooleanValue(PAYMENT_GROUP,
        'EXTRA_LOGGING',
        description=_("Verbose logs"),
        help_text=_("Add extensive logs during post."),
        default=False)
)
Exemplo n.º 27
0
config_register_list(

    StringValue(PAYMENT_GROUP,
        'CONNECTION',
        description=_("Submit to URL"),
        help_text=_("""This is the address to submit live transactions."""),
        default='https://secure.authorize.net/gateway/transact.dll'),

    StringValue(PAYMENT_GROUP,
        'CONNECTION_TEST',
        description=_("Submit to Test URL"),
        help_text=("""If you have a test account with authorize.net and you log in through
https://test.authorize.net/gateway/transact.dll, then you should use the default 
test URL.  If you do not have a test account you will get an Error 13 message 
unless you change the URL to https://secure.authorize.net/gateway/transact.dll.  
You will also need to login in to authorize.net and make sure your account has 
test mode turned on.
"""),
        default='https://test.authorize.net/gateway/transact.dll'),

    BooleanValue(PAYMENT_GROUP,
        'LIVE',
        description=_("Accept real payments"),
        help_text=_("False if you want to submit to the test urls.  NOTE: If you are testing, then you can use the cc# 4222222222222 to force a bad credit card response.  If you use that number and a ccv of 222, that will force a bad ccv response from authorize.net"),
        default=False),

    BooleanValue(PAYMENT_GROUP,
        'SIMULATE',
        description=_("Force a test post?"),
        help_text=_("True if you want to submit to the live url using a test flag, which won't be accepted."),
        default=False),

    ModuleValue(PAYMENT_GROUP,
        'MODULE',
        description=_('Implementation module'),
        hidden=True,
        default = 'payment.modules.authorizenet'),

    StringValue(PAYMENT_GROUP,
        'KEY',
        description=_("Module key"),
        hidden=True,
        default = 'AUTHORIZENET'),

    StringValue(PAYMENT_GROUP,
        'LABEL',
        description=_('English name for this group on the checkout screens'),
        default = 'Credit Cards',
        dummy = _('Credit Cards'), # Force this to appear on po-files
        help_text = _('This will be passed to the translation utility')),

    StringValue(PAYMENT_GROUP,
        'URL_BASE',
        description=_('The url base used for constructing urlpatterns which will use this module'),
        default = r'^credit/'),

    MultipleStringValue(PAYMENT_GROUP,
        'CREDITCHOICES',
        description=_('Available credit cards'),
        choices = (
            (('American Express', 'American Express')),
            (('Visa','Visa')),
            (('Mastercard','Mastercard')),
            (('Discover','Discover'))),
        default = ('Visa', 'Mastercard', 'Discover')),

    StringValue(PAYMENT_GROUP,
        'LOGIN',
        description=_('Your authorize.net transaction login'),
        default=""),

    StringValue(PAYMENT_GROUP,
        'TRANKEY',
        description=_('Your authorize.net transaction key'),
        default=""),

    BooleanValue(PAYMENT_GROUP,
        'CAPTURE',
        description=_('Capture Payment immediately?'),
        default=True,
        help_text=_('IMPORTANT: If false, a capture attempt will be made when the order is marked as shipped.')),

    BooleanValue(PAYMENT_GROUP,
        'EXTRA_LOGGING',
        description=_("Verbose logs"),
        help_text=_("Add extensive logs during post."),
        default=False)
)
Exemplo n.º 28
0
config_register_list(
    BooleanValue(PAYMENT_GROUP,
                 'SSL',
                 description=_("Use SSL for the module checkout pages?"),
                 default=True),
    BooleanValue(PAYMENT_GROUP,
                 'LIVE',
                 description=_("Accept real payments"),
                 help_text=_("False if you want to be in test mode"),
                 default=True),
    ModuleValue(PAYMENT_GROUP,
                'MODULE',
                description=_('Implementation module'),
                hidden=True,
                default='djangoplicity.coposweb'),
    StringValue(PAYMENT_GROUP,
                'KEY',
                description=_("Module key"),
                hidden=True,
                default='COPOSWEB'),
    StringValue(
        PAYMENT_GROUP,
        'LABEL',
        description=_('English name for this group on the checkout screens'),
        default='Credit Cards',
        help_text=_('This will be passed to the translation utility')),
    StringValue(
        PAYMENT_GROUP,
        'URL_BASE',
        description=
        _('The url base used for constructing urlpatterns which will use this module'
          ),
        default='^credit/'),
    MultipleStringValue(PAYMENT_GROUP,
                        'CREDITCHOICES',
                        description=_('Available credit cards'),
                        choices=((('Visa', 'Visa')), (('Mastercard',
                                                       'Mastercard')),
                                 (('American Express', 'American Express'))),
                        default=('Visa', 'Mastercard', 'American Express')),
    BooleanValue(
        PAYMENT_GROUP,
        'CAPTURE',
        description=_('Capture Payment immediately?'),
        default=False,
        help_text=
        _('IMPORTANT: If false, a capture attempt will be made when the order is marked as shipped."'
          )),
    BooleanValue(PAYMENT_GROUP,
                 'EXTRA_LOGGING',
                 description=_("Verbose logs"),
                 help_text=_("Add extensive logs during post."),
                 default=False),
    StringValue(
        PAYMENT_GROUP,
        'LIVE_CONFIG_FILE',
        description=_("Path to live configuration file."),
        help_text=
        _("""Full path to the coposweb.ini configuration file containing web service URL, credentials and more."""
          ),
        default='/etc/coposweb.ini'),
    StringValue(
        PAYMENT_GROUP,
        'CONNECTION_TEST',
        description=_("Submit to Test URL"),
        help_text=_("""This is the address to submit test transactions."""),
        default=
        'https://coposweb.companydirect.de/posh/cmd/posh/tpl/txn_result.tpl'),
    StringValue(PAYMENT_GROUP,
                'USER_TEST',
                description=_('Your COPOSweb service test username'),
                default=""),
    StringValue(PAYMENT_GROUP,
                'PASSWORD_TEST',
                description=_('Your COPOSweb service test password'),
                default=""),
    StringValue(
        PAYMENT_GROUP,
        'AUTH_REALM_TEST',
        description=_('Your COPOSweb service test HTTP authentication realm'),
        default="POSH"),
    StringValue(
        PAYMENT_GROUP,
        'AUTH_URL_TEST',
        description=_('Your COPOSweb service test HTTP authentication URL'),
        default="coposweb.companydirect.de"),
    StringValue(PAYMENT_GROUP,
                'CURRENCY_TEST',
                description=_('Your COPOSweb service test currency.'),
                default="EUR"),
)
Exemplo n.º 29
0
config_register_list(
    StringValue(
        PAYMENT_GROUP,
        'CHARSET',
        description=_("Character Set"),
        default="BCDFGHKPRSTVWXYZbcdfghkprstvwxyz23456789",
        help_text=
        _("The characters allowable in randomly-generated certficate codes.  No vowels means no unfortunate words."
          )),
    StringValue(PAYMENT_GROUP,
                'KEY',
                description=_("Module key"),
                hidden=True,
                default='GIFTCERTIFICATE'),
    StringValue(
        PAYMENT_GROUP,
        'FORMAT',
        description=_('Code format'),
        default="^^^^-^^^^-^^^^",
        help_text=
        _("Enter the format for your cert code.  Use a '^' for the location of a randomly generated character."
          )),
    ModuleValue(PAYMENT_GROUP,
                'MODULE',
                description=_('Implementation module'),
                hidden=True,
                default='payment.modules.giftcertificate'),
    StringValue(
        PAYMENT_GROUP,
        'LABEL',
        description=_('English name for this group on the checkout screens'),
        default='Gift Certificate',
        dummy=_('Gift Certificate'),  # Force this to appear on po-files
        help_text=_('This will be passed to the translation utility')),
    BooleanValue(PAYMENT_GROUP,
                 'LIVE',
                 description=_("Accept real payments"),
                 help_text=_("False if you want to be in test mode"),
                 default=False),
    BooleanValue(
        PAYMENT_GROUP,
        'EMAIL_RECIPIENT',
        description=_("Send email to recipients"),
        help_text=
        _("If the purchaser includes an email address, should we send a notification to them?"
          ),
        default=True),
    StringValue(
        PAYMENT_GROUP,
        'URL_BASE',
        description=
        _('The url base used for constructing urlpatterns which will use this module'
          ),
        default=r'^giftcertificate/'),
    BooleanValue(PAYMENT_GROUP,
                 'EXTRA_LOGGING',
                 description=_("Verbose logs"),
                 help_text=_("Add extensive logs during post."),
                 default=False))
Exemplo n.º 30
0
config_register_list(
    PositiveIntegerValue(
        PRODUCT_GROUP,
        'NUM_DISPLAY',
        description=_("Total featured"),
        help_text=_("Total number of featured items to display"),
        default=20),
    PositiveIntegerValue(
        PRODUCT_GROUP,
        'NUM_PAGINATED',
        description=_("Number featured"),
        help_text=_("Number of featured items to display on each page"),
        default=10),
    MultipleStringValue(
        PRODUCT_GROUP,
        'MEASUREMENT_SYSTEM',
        description=_("Measurement System"),
        help_text=_("Default measurement system to use for products."),
        choices=[('metric', _('Metric')), ('imperial', _('Imperial'))],
        default="imperial"),
    BooleanValue(
        PRODUCT_GROUP,
        'NO_STOCK_CHECKOUT',
        description=_("Allow checkout with 0 inventory?"),
        help_text=
        _("If yes, then customers can buy even if your inventory is 0 for a product."
          ),
        default=True),
    BooleanValue(
        PRODUCT_GROUP,
        'RANDOM_FEATURED',
        description=_("Random Display"),
        help_text=_("Enable random display of featured products on home page"),
        default=False),
    BooleanValue(
        PRODUCT_GROUP,
        'TRACK_INVENTORY',
        description=_("Track inventory levels?"),
        help_text=_(
            "If no, then inventory will not be tracked for products sold."),
        default=True),
    BooleanValue(
        PRODUCT_GROUP,
        'SHOW_NO_PHOTO_IN_CATEGORY',
        description=_(
            "Display Photo Not Available Image in the category page?"),
        help_text=
        _("If yes, then a Photo Not Available Image will be shown on the category page."
          ),
        default=False),
)
Exemplo n.º 31
0
    def testSetTwoConfigItems(self):
        s = [IntegerValue(BASE_GROUP, 'testTwoA'), StringValue(BASE_GROUP, 'testTwoB')]
        config_register_list(*s)

        self.assertTrue(config_exists(BASE_GROUP, 'testTwoA'))
        self.assertTrue(config_exists(BASE_GROUP, 'testTwoB'))
Exemplo n.º 32
0
config_register_list(
    BooleanValue(PAYMENT_GROUP,
        'LIVE',
        description=_("Accept real payments"),
        help_text=_("False if you want to be in test mode"),
        default=False),

    ModuleValue(PAYMENT_GROUP,
        'MODULE',
        description=_('Implementation module'),
        hidden=True,
        default = 'payment.modules.purchaseorder'),

    StringValue(PAYMENT_GROUP,
        'KEY',
        description=_("Module key"),
        hidden=True,
        default = 'PURCHASEORDER'),

    StringValue(PAYMENT_GROUP,
        'LABEL',
        description=_('English name for this group on the checkout screens'),
        default = 'Purchase Order',
        dummy = _('Purchase Order'), # Force this to appear on po-files
        help_text = _('This will be passed to the translation utility')),

    StringValue(PAYMENT_GROUP,
        'URL_BASE',
        description=_('The url base used for constructing urlpatterns which will use this module'),
        default = '^po/'),

    BooleanValue(PAYMENT_GROUP,
        'EXTRA_LOGGING',
        description=_("Verbose logging?"),
        default=False),
)
Exemplo n.º 33
0
config_register_list(
    BooleanValue(PAYMENT_GROUP,
                 'LIVE',
                 description=_("Accept real payments"),
                 help_text=_("False if you want to be in test mode"),
                 default=False),
    ModuleValue(PAYMENT_GROUP,
                'MODULE',
                description=_('Implementation module'),
                hidden=True,
                default='payment.modules.dummy'),
    StringValue(PAYMENT_GROUP,
                'KEY',
                description=_("Module key"),
                hidden=True,
                default='DUMMY'),
    StringValue(
        PAYMENT_GROUP,
        'LABEL',
        description=_('English name for this group on the checkout screens'),
        default='Payment test module',
        dummy=_('Payment test module'),  # Force this to appear on po-files
        help_text=_('This will be passed to the translation utility')),
    StringValue(
        PAYMENT_GROUP,
        'URL_BASE',
        description=
        _('The url base used for constructing urlpatterns which will use this module'
          ),
        default='^dummy/'),
    MultipleStringValue(PAYMENT_GROUP,
                        'CREDITCHOICES',
                        description=_('Available credit cards'),
                        choices=((('Visa', 'Visa')), (('Mastercard',
                                                       'Mastercard')),
                                 (('Discover', 'Discover')),
                                 (('American Express', 'American Express'))),
                        default=('Visa', 'Mastercard', 'Discover',
                                 'American Express')),
    BooleanValue(
        PAYMENT_GROUP,
        'CAPTURE',
        description=_('Capture Payment immediately?'),
        default=True,
        help_text=
        _('IMPORTANT: If false, a capture attempt will be made when the order is marked as shipped.'
          )),
    BooleanValue(
        PAYMENT_GROUP,
        'AUTH_EARLY',
        description=_("Early AUTH"),
        help_text=
        _("Authenticate on the card entry page, causes an immediate $.01 AUTH and release, allowing errors with the card to show on the card entry page."
          ),
        default=False),
    BooleanValue(PAYMENT_GROUP,
                 'EXTRA_LOGGING',
                 description=_("Verbose logs"),
                 help_text=_("Add extensive logs during post."),
                 default=False))
Exemplo n.º 34
0
from livesettings.functions import config_register_list
from livesettings.values import ConfigurationGroup, IntegerValue, BooleanValue
from django.utils.translation import ugettext_lazy as _

THUMB_GROUP = ConfigurationGroup('THUMBNAIL', _('Thumbnail Settings'))

config_register_list(
    IntegerValue(THUMB_GROUP, 
        'IMAGE_QUALITY', 
        description= _("Thumbnail quality"), 
        help_text = _("Use a 1-100 value here, which will change the quality of JPG thumbnails created for products and categories."),
        default=75,
        ordering=0),
        
    BooleanValue(THUMB_GROUP,
        'RENAME_IMAGES',
        description=_("Rename product images?"),
        help_text=_("Automatically rename product images on upload?"),
        default=True)
)
Exemplo n.º 35
0
config_register_list(
    BooleanValue(PAYMENT_GROUP,
        'LIVE',
        description=_("Accept real payments"),
        help_text=_("False if you want to be in test mode"),
        default=False),

    ModuleValue(PAYMENT_GROUP,
        'MODULE',
        description=_('Implementation module'),
        hidden=True,
        default = 'payment.modules.dummy'),

    StringValue(PAYMENT_GROUP,
        'KEY',
        description=_("Module key"),
        hidden=True,
        default = 'DUMMY'),

    StringValue(PAYMENT_GROUP,
        'LABEL',
        description=_('English name for this group on the checkout screens'),
        default = 'Payment test module',
        dummy = _('Payment test module'), # Force this to appear on po-files
        help_text = _('This will be passed to the translation utility')),

    StringValue(PAYMENT_GROUP,
        'URL_BASE',
        description=_('The url base used for constructing urlpatterns which will use this module'),
        default = '^dummy/'),

    MultipleStringValue(PAYMENT_GROUP,
        'CREDITCHOICES',
        description=_('Available credit cards'),
        choices = (
            (('Visa','Visa')),
            (('Mastercard','Mastercard')),
            (('Discover','Discover')),
            (('American Express', 'American Express'))),
        default = ('Visa', 'Mastercard', 'Discover', 'American Express')),

    BooleanValue(PAYMENT_GROUP,
        'CAPTURE',
        description=_('Capture Payment immediately?'),
        default=True,
        help_text=_('IMPORTANT: If false, a capture attempt will be made when the order is marked as shipped.')),

    BooleanValue(PAYMENT_GROUP,
        'AUTH_EARLY',
        description=_("Early AUTH"),
        help_text=_("Authenticate on the card entry page, causes an immediate $.01 AUTH and release, allowing errors with the card to show on the card entry page."),
        default=False),

    BooleanValue(PAYMENT_GROUP,
        'EXTRA_LOGGING',
        description=_("Verbose logs"),
        help_text=_("Add extensive logs during post."),
        default=False)
)
Exemplo n.º 36
0
config_register_list(

    StringValue(PAYMENT_GROUP,
        'KEY',
        description=_("Module key"),
        hidden=True,
        default = 'TRUSTCOMMERCE'),

    ModuleValue(PAYMENT_GROUP,
        'MODULE',
        description=_('Implementation module'),
        hidden=True,
        default = 'payment.modules.trustcommerce'),

    BooleanValue(PAYMENT_GROUP,
        'AVS',
        description=_("Use Address Verification System (AVS)?"),
        default=False),

    BooleanValue(PAYMENT_GROUP,
        'LIVE',
        description=_("Accept real payments"),
        help_text=_("False if you want to be in test mode"),
        default=False),

    StringValue(PAYMENT_GROUP,
        'AUTH_TYPE',
        description=_("Type of authorization to perform."),
        help_text = _("Refer to manual for details on the different types."),
        default = 'sale',
        choices = [('sale', _('Sale')),
                    ('preauth', _('Preauth'))]
        ),

    StringValue(PAYMENT_GROUP,
        'LABEL',
        description=_('English name for this group on the checkout screens'),
        default = 'Credit Cards',
        dummy = _('Credit Cards'), # Force this to appear on po-files
        help_text = _('This will be passed to the translation utility')),

    StringValue(PAYMENT_GROUP,
        'URL_BASE',
        description=_('The url base used for constructing urlpatterns which will use this module'),
        default = r'^credit/'),

    MultipleStringValue(PAYMENT_GROUP,
        'CREDITCHOICES',
        description=_('Available credit cards'),
        choices = (
            (('American Express', 'American Express')),
            (('Visa','Visa')),
            (('Mastercard','Mastercard')),
            (('Discover','Discover'))),
        default = ('Visa', 'Mastercard', 'Discover')),

    StringValue(PAYMENT_GROUP,
        'LOGIN',
        description=_('Your TrustCommerce login'),
        default=""),

    StringValue(PAYMENT_GROUP,
        'PASSWORD',
        description=_('Your TrustCommerce password'),
        default=""),

    BooleanValue(PAYMENT_GROUP,
        'EXTRA_LOGGING',
        description=_("Verbose logs"),
        help_text=_("Add extensive logs during post."),
        default=False)
)
Exemplo n.º 37
0
config_register_list(    
    BooleanValue(PAYMENT_GROUP, 
        'LIVE', 
        description=_("Accept real payments"),
        help_text=_("False if you want to be in test mode"),
        default=False),
        
    ModuleValue(PAYMENT_GROUP,
        'MODULE',
        description=_('Implementation module'),
        hidden=True,
        default = 'payment.modules.autosuccess'),
        
    StringValue(PAYMENT_GROUP,
        'KEY',
        description=_("Module key"),
        hidden=True,
        default = 'AUTOSUCCESS'),

    StringValue(PAYMENT_GROUP,
        'LABEL',
        description=_('English name for this group on the checkout screens'),
        default = 'Pay Now',
        dummy = _('Pay Now'), # Force this to appear on po-files
        help_text = _('This will be passed to the translation utility')),

    StringValue(PAYMENT_GROUP,
        'URL_BASE',
        description=_('The url base used for constructing urlpatterns which will use this module'),
        default = '^auto/'),
        
    BooleanValue(PAYMENT_GROUP,
        'EXTRA_LOGGING',
        description=_("Verbose logs"),
        help_text=_("Add extensive logs during post."),
        default=False)
)
Exemplo n.º 38
0
config_register_list(
    StringValue(PAYMENT_GROUP,
                'CURRENCY_CODE',
                description=_('Currency Code'),
                help_text=_('Currency code for Concardis transactions.'),
                default='EUR'),
    StringValue(
        PAYMENT_GROUP,
        'SHA_IN_PASSPHRASE',
        description=_('SHA-IN pass phrase'),
        help_text=_('The SHA-IN pass phrase used to hash the parameters.'),
        default=''),
    StringValue(
        PAYMENT_GROUP,
        'SHA_OUT_PASSPHRASE',
        description=_('SHA-OUT pass phrase'),
        help_text=_('The SHA-OUT pass phrase used to hash the parameters.'),
        default=''),
    StringValue(
        PAYMENT_GROUP,
        'POST_URL',
        description=_('Post URL'),
        help_text=_('The Concardis URL for real transaction posting.'),
        default='https://secure.payengine.de/ncol/prod//orderstandard_utf8.asp'
    ),
    StringValue(
        PAYMENT_GROUP,
        'POST_TEST_URL',
        description=_('Test Post URL'),
        help_text=_('The Concardis URL for test transaction posting.'),
        default='https://secure.payengine.de/ncol/test//orderstandard_utf8.asp'
    ),
    StringValue(PAYMENT_GROUP,
                'PSPID',
                description=_('Concardis PSPID'),
                help_text=_('The PSPID for your Concardis account'),
                default=''),
    StringValue(
        PAYMENT_GROUP,
        'RETURN_ADDRESS',
        description=_('Return URL'),
        help_text=
        _('Where Concardis will return the customer after the purchase is complete.  This can be a named url and defaults to the standard checkout success.'
          ),
        default='satchmo_checkout-success'),
    BooleanValue(PAYMENT_GROUP,
                 'LIVE',
                 description=_('Accept real payments'),
                 help_text=_('False if you want to be in test mode'),
                 default=False),
    ModuleValue(PAYMENT_GROUP,
                'MODULE',
                description=_('Implementation module'),
                hidden=True,
                default='djangoplicity.concardis'),
    StringValue(PAYMENT_GROUP,
                'KEY',
                description=_('Module key'),
                hidden=True,
                default='CONCARDIS'),
    StringValue(
        PAYMENT_GROUP,
        'LABEL',
        description=_('English name for this group on the checkout screens'),
        default='Concardis',
        dummy=_('Concardis'),  # Force this to appear on po-files
        help_text=_('This will be passed to the translation utility')),
    StringValue(
        PAYMENT_GROUP,
        'URL_BASE',
        description=
        _('The url base used for constructing urlpatterns which will use this module'
          ),
        default='^payment/'),
    BooleanValue(PAYMENT_GROUP,
                 'EXTRA_LOGGING',
                 description=_('Verbose logs'),
                 help_text=_('Add extensive logs during post.'),
                 default=False))
Exemplo n.º 39
0
config_register_list(

    StringValue(SHIPPING_GROUP,
        'XML_KEY',
        description=_("UPS XML Access Key"),
        help_text=_("XML Access Key Provided by UPS"),
        default=u""),

    StringValue(SHIPPING_GROUP,
        'USER_ID',
        description=_("UPS User ID"),
        help_text=_("User ID provided by UPS site."),
        default=u""),

    StringValue(SHIPPING_GROUP,
        'ACCOUNT',
        description=_("UPS Account Number"),
        help_text=_("UPS Account Number."),
        default=u""),

    StringValue(SHIPPING_GROUP,
        'USER_PASSWORD',
        description=_("UPS User Password"),
        help_text=_("User password provided by UPS site."),
        default=u""),

    MultipleStringValue(SHIPPING_GROUP,
        'UPS_SHIPPING_CHOICES',
        description=_("UPS Shipping Choices Available to customers. These are valid domestic codes only."),
        choices = (
            (('01', 'Next Day Air')),
            (('02', 'Second Day Air')),
            (('03', 'Ground')),
            (('12', '3 Day Select')),
            (('13', 'Next Day Air Saver')),
            (('14', 'Next Day Air Early AM')),
            (('59', '2nd Day Air AM')),
        ),
        default = ('03',)),

     DecimalValue(SHIPPING_GROUP,
        'HANDLING_FEE',
        description=_("Handling Fee"),
        help_text=_("The cost of packaging and getting the package off"),
        default=Decimal('0.00')),

    StringValue(SHIPPING_GROUP,
        'SHIPPING_CONTAINER',
        description=_("Type of container used to ship product."),
        choices = (
            (('00', 'Unknown')),
            (('01', 'UPS LETTER')),
            (('02', 'PACKAGE / CUSTOMER SUPPLIED')),
        ),
        default = u"00"),

    BooleanValue(SHIPPING_GROUP,
        'SINGLE_BOX',
        description=_("Single Box?"),
        help_text=_("Use just one box and ship by weight?  If no then every item will be sent in its own box."),
        default=True),

    BooleanValue(SHIPPING_GROUP,
        'TIME_IN_TRANSIT',
        description=_("Time in Transit?"),
        help_text=_("Use the UPS Time In Transit API? It is slower but delivery dates are more accurate."),
        default=False),

    StringValue(SHIPPING_GROUP,
        'PICKUP_TYPE',
        description=_("UPS Pickup option."),
        choices = (
            (('01', 'DAILY PICKUP')),
            (('03', 'CUSTOMER COUNTER')),
            (('06', 'ONE TIME PICKUP')),
            (('07', 'ON CALL PICKUP')),
            ),
        default = u"07"),

    BooleanValue(SHIPPING_GROUP,
        'LIVE',
        description=_("Access production UPS server"),
        help_text=_("Use this when your store is in production."),
        default=False),

    StringValue(SHIPPING_GROUP,
        'CONNECTION',
        description=_("Submit to URL"),
        help_text=_("Address to submit live transactions."),
        default="https://onlinetools.ups.com/ups.app/xml/Rate"),

    StringValue(SHIPPING_GROUP,
        'CONNECTION_TEST',
        description=_("Submit to TestURL"),
        help_text=_("Address to submit test transactions."),
        default="https://wwwcie.ups.com/ups.app/xml/Rate"),

    BooleanValue(SHIPPING_GROUP,
        'VERBOSE_LOG',
        description=_("Verbose logs"),
        help_text=_("Send the entire request and response to the log - for debugging help when setting up UPS."),
        default=False)

)
Exemplo n.º 40
0
# No need to add the choice, since it is in by default
# SHIP_MODULES.add_choice(('shipping.modules.per', _('Per piece')))

SHIPPING_GROUP = config_get_group('SHIPPING')

config_register_list(

    DecimalValue(SHIPPING_GROUP,
        'PER_RATE',
        description=_("Per item price"),
        requires=SHIP_MODULES,
        requiresvalue='shipping.modules.per',
        default="4.00"),

    StringValue(SHIPPING_GROUP,
        'PER_SERVICE',
        description=_("Per Item Shipping Service"),
        help_text=_("Shipping service used with per item shipping"),
        requires=SHIP_MODULES,
        requiresvalue='shipping.modules.per',
        default=u"U.S. Mail"),

    StringValue(SHIPPING_GROUP,
        'PER_DAYS',
        description=_("Per Item Delivery Days"),
        requires=SHIP_MODULES,
        requiresvalue='shipping.modules.per',
        default="3 - 4 business days")
)
Exemplo n.º 41
0
config_register_list(
    StringValue(SHIPPING_GROUP,
                'CPCID',
                description=_('Canada Post Merchant ID'),
                help_text=_('The merchant ID assigned by Canada Post'),
                default='CPC_DEMO_XML'),

    #http://sellonline.canadapost.ca/DevelopersResources/protocolV3/ProductID.html
    MultipleStringValue(
        SHIPPING_GROUP,
        'CANADAPOST_SHIPPING_CHOICES',
        description=_("Canada Post shipping choices available to customers."),
        choices=(
            (('1010', 'Domestic - Regular')),
            (('1020', 'Domestic - Expedited')),
            (('1030', 'Domestic - Xpresspost')),
            (('1040', 'Domestic - Priority Courier')),
            (('2005', 'US - Small Packets Surface')),
            (('2015', 'US - Small Packets Air')),
            (('2020', 'US - Expedited US Business Contract')),
            (('2025', 'US - Expedited US Commercial')),
            (('2030', 'US - Xpress USA')),
            (('2040', 'US - Priority Worldwide USA')),
            (('2050', 'US - Priority Worldwide PAK USA')),
            (('3005', 'Int`l - Small Packets Surface')),
            (('3010', 'Int`l - Surface International')),
            (('3015', 'Int`l - Small Packets Air')),
            (('3020', 'Int`l - Air International')),
            (('3025', 'Int`l - Xpresspost International')),
            (('3040', 'Int`l - Priority Worldwide INTL')),
            (('3050', 'Int`l - Priority Worldwide PAK INTL')),
        ),
        default=(
            '1010',
            '1020',
            '1030',
            '1040',
        )),
    StringValue(SHIPPING_GROUP,
                'SHIPPING_CONTAINER',
                description=_("Type of container used to ship product."),
                choices=(
                    (('00', 'Unknown')),
                    (('01', 'Variable')),
                    (('02', 'Rectangular')),
                ),
                default="00"),
    BooleanValue(SHIPPING_GROUP,
                 'LIVE',
                 description=_('Access production Canada Post server'),
                 help_text=_('Use this when your store is in production.'),
                 default=False),
    StringValue(
        SHIPPING_GROUP,
        'CONNECTION',
        description=_('Submit to URL'),
        help_text=_(
            'Canada Post Sell Online server to submit live transactions.'),
        default='http://sellonline.canadapost.ca:30000'),
    StringValue(
        SHIPPING_GROUP,
        'CONNECTION_TEST',
        description=_('Submit to TestURL'),
        help_text=_(
            'Canada Post Sell Online server to submit test transactions.'),
        default='http://sellonline.canadapost.ca:30000'),
    StringValue(
        SHIPPING_GROUP,
        'TURN_AROUND_TIME',
        description=_('Turn around time'),
        help_text=_(
            'Turn around time in hours. If declared here, this parameter \
                    will overwrite the one defined in the merchant\'s profile'
        ),
        default='24'),
    BooleanValue(
        SHIPPING_GROUP,
        'VERBOSE_LOG',
        description=_("Verbose logs"),
        help_text=
        _("Send the entire request and response to the log - for debugging help when setting up Canada Post."
          ),
        default=False))
Exemplo n.º 42
0
config_register_list(
    StringValue(SHIPPING_GROUP,
                'METER_NUMBER',
                description=_('FedEx Meter Number'),
                help_text=_('Meter Number provided by FedEx.'),
                default=''),
    StringValue(SHIPPING_GROUP,
                'ACCOUNT',
                description=_('FedEx Account Number'),
                help_text=_('FedEx Account Number.'),
                default=''),
    StringValue(SHIPPING_GROUP,
                'AUTHENTICATION_KEY',
                description=_('FedEx Authentication Key'),
                help_text=_('FedEx Authentication Key.'),
                default=''),
    StringValue(SHIPPING_GROUP,
                'AUTHENTICATION_PASSWORD',
                description=_('FedEx Authentication Password'),
                help_text=_('FedEx Authentication Password.'),
                default=''),
    StringValue(
        SHIPPING_GROUP,
        'SHIPPER_REGION',
        description=_('The region you are sending your package from.'),
        help_text=_('i.e. the region the package leaves from.'),
        choices=(
            ('APAC', 'APAC'),
            ('CA', 'CA'),
            ('EMEA', 'EMEA'),
            ('LAC', 'LAC'),
            ('US', 'US'),
        ),
        default='US',
    ),
    MultipleStringValue(
        SHIPPING_GROUP,
        'SHIPPING_CHOICES',
        description=_('FedEx Shipping Choices Available to customers.'),
        choices=(
            ('EUROPE_FIRST_INTERNATIONAL_PRIORITY',
             'Europe First International Priority'),
            ('FEDEX_1_DAY_FREIGHT', 'Fedex 1 Day Freight'),
            ('FEDEX_2_DAY', 'Fedex 2 Day'),
            ('FEDEX_2_DAY_FREIGHT', 'Fedex 2 Day Freight'),
            ('FEDEX_3_DAY_FREIGHT', 'Fedex 3 Day Freight'),
            ('FEDEX_EXPRESS_SAVER', 'Fedex Express Saver'),
            ('FEDEX_GROUND', 'Fedex Ground'),
            ('FIRST_OVERNIGHT', 'First Overnight'),
            ('GROUND_HOME_DELIVERY', 'Ground Home Delivery'),
            ('INTERNATIONAL_ECONOMY', 'International Economy'),
            ('INTERNATIONAL_ECONOMY_FREIGHT', 'International Economy Freight'),
            ('INTERNATIONAL_FIRST', 'International First'),
            ('INTERNATIONAL_PRIORITY', 'International Priority'),
            ('INTERNATIONAL_PRIORITY_FREIGHT',
             'International Priority Freight'),
            ('PRIORITY_OVERNIGHT', 'Priority Overnight'),
            ('SMART_POST', 'Smart Post'),
            ('STANDARD_OVERNIGHT', 'Standard Overnight'),
            ('FEDEX_FREIGHT', 'Fedex Freight'),
            ('FEDEX_NATIONAL_FREIGHT', 'Fedex National Freight'),
            ('INTERNATIONAL_GROUND', 'International Ground'),
        ),
        default='FEDEX_GROUND'),
    StringValue(
        SHIPPING_GROUP,
        'PACKAGING',
        description=_('Type of container/package used to ship product.'),
        choices=(
            ('YOUR_PACKAGING', 'YOUR_PACKAGING'),
            ('FEDEX_10KG_BOX', 'FEDEX_10KG_BOX'),
            ('FEDEX_25KG_BOX', 'FEDEX_25KG_BOX'),
            ('FEDEX_BOX', 'FEDEX_BOX'),
            ('FEDEX_ENVELOPE', 'FEDEX_ENVELOPE'),
            ('FEDEX_PAK', 'FEDEX_PAK'),
            ('FEDEX_TUBE', 'FEDEX_TUBE'),
        ),
        default='YOUR_PACKAGING',
    ),
    StringValue(
        SHIPPING_GROUP,
        'DEFAULT_ITEM_WEIGHT',
        description=_("Default/Minimum Item Weight"),
        help_text=
        _("The default weight for items which lack a defined weight and the minimum an item is allowed to be, enter a positive value."
          ),
        default='0.5',
    ),
    StringValue(SHIPPING_GROUP,
                'DEFAULT_WEIGHT_UNITS',
                description=_("Default weight units"),
                choices=(
                    ('LB', 'LB'),
                    ('KG', 'KG'),
                ),
                default="LB"),
    BooleanValue(
        SHIPPING_GROUP,
        'SINGLE_BOX',
        description=_("Single Box?"),
        help_text=
        _("Use just one box and ship by weight?  If no then every item will be sent in its own box."
          ),
        default=True),
    StringValue(
        SHIPPING_GROUP,
        'DROPOFF_TYPE',
        description=_("The method used to give the package to Fedex."),
        choices=(
            ('REGULAR_PICKUP', 'REGULAR_PICKUP'),
            ('BUSINESS_SERVICE_CENTER', 'BUSINESS_SERVICE_CENTER'),
            ('DROP_BOX', 'DROP_BOX'),
            ('REQUEST_COURIER', 'REQUEST_COURIER'),
            ('STATION', 'STATION'),
        ),
        help_text=_("Most users will keep the default Regular Pickup."),
        default='REGULAR_PICKUP',
    ),
    BooleanValue(
        SHIPPING_GROUP,
        'VERBOSE_LOG',
        description=_("Verbose logs"),
        help_text=
        _("Send the entire request and response to the log - for debugging help when setting up FedEx."
          ),
        default=False),
    BooleanValue(
        SHIPPING_GROUP,
        'TEST_SERVER',
        description=_("Use test server?"),
        help_text=
        _("Check if you want to use the fedex test servers rather than the production server."
          ),
        default=True),
)
Exemplo n.º 43
0
config_register_list(
    BooleanValue(PAYMENT_GROUP,
                 'LIVE',
                 description=_("Accept real payments"),
                 help_text=_("False if you want to be in test mode"),
                 default=False),
    BooleanValue(PAYMENT_GROUP,
                 'SIMULATOR',
                 description=_("Simulated Transactions?"),
                 help_text=_("Must be false to accept real payments"),
                 default=False),
    BooleanValue(
        PAYMENT_GROUP,
        'SKIP_POST',
        description=_("Skip post?"),
        help_text=
        _("For testing only, this will skip actually posting to Sage Pay servers.  This is because their servers restrict IPs of posting servers, even for tests.  If you are developing on a desktop, you'll have to enable this."
          ),
        default=False),
    StringValue(
        PAYMENT_GROUP,
        'CAPTURE',
        description=_('Payment Capture'),
        help_text=
        _('This can be "Payment" which captures immediately, or "Deferred".  Note that you can only use the latter if you set option on your Sage pay account first.'
          ),
        choices=(
            (('PAYMENT', 'Payment')),
            (('DEFERRED', 'Deferred')),
        ),
        default='PAYMENT'),
    ModuleValue(PAYMENT_GROUP,
                'MODULE',
                description=_('Implementation module'),
                hidden=True,
                default='payment.modules.sagepay'),
    StringValue(PAYMENT_GROUP,
                'KEY',
                description=_("Module key"),
                hidden=True,
                default='SAGEPAY'),
    StringValue(
        PAYMENT_GROUP,
        'LABEL',
        description=_('English name for this group on the checkout screens'),
        default='Sage Pay Secure Payments',
        dummy=_(
            'Sage Pay Secure Payments'),  # Force this to appear on po-files
        help_text=_('This will be passed to the translation utility')),
    MultipleStringValue(
        PAYMENT_GROUP,
        'CREDITCHOICES',
        description=_('Available credit cards'),
        choices=(
            (('VISA', 'Visa Credit/Debit')),
            (('UKE', 'Visa Electron')),
            (('DELTA', 'Delta')),
            #(('AMEX','American Express')),  # not always available
            #(('DC','Diners Club')), # not always available
            (('MC', 'Mastercard')),
            (('MAESTRO', 'UK Maestro')),
            (('SOLO', 'Solo')),
            (('JCB', 'JCB')),
        ),
        default=('VISA', 'MC')),
    StringValue(
        PAYMENT_GROUP,
        'VENDOR',
        description=_('Your Vendor Name'),
        default="",
        help_text=
        _("This is used for Live and Test transactions.  Make sure to add your server IP address to VSP, or it won't work."
          )),
    StringValue(
        PAYMENT_GROUP,
        'VENDOR_SIMULATOR',
        description=_('Simulator Vendor Name'),
        default="",
        help_text=
        _("This is used for Live and Test transactions.  Make sure to activate the VSP Simulator (you have to directly request it) and add your server IP address to the VSP Simulator, or it won't work."
          )),
    StringValue(PAYMENT_GROUP,
                'CURRENCY_CODE',
                description=_('Currency Code'),
                help_text=_('Currency code for Sage Pay transactions.'),
                default='GBP'),
    StringValue(
        PAYMENT_GROUP,
        'URL_BASE',
        description=
        _('The url base used for constructing urlpatterns which will use this module'
          ),
        default=r'^sagepay/'),
    BooleanValue(PAYMENT_GROUP,
                 'EXTRA_LOGGING',
                 description=_("Verbose logs"),
                 help_text=_("Add extensive logs during post."),
                 default=False))
Exemplo n.º 44
0
config_register_list(
    BooleanValue(
        PAYMENT_GROUP,
        'LIVE',
        description=_("Accept real payments"),
        help_text=_(
            "False if you want to submit to the test urls.  NOTE: Look "
            "at the PayflowPro developer's guide "
            "(https://cms.paypal.com/us/cgi-bin/?cmd=_render-content"
            "&content_ID=developer/howto_gateway_payflowpro) for the "
            "list of valid credit card numbers."),
        default=False),
    ModuleValue(PAYMENT_GROUP,
                'MODULE',
                description=_('Implementation module'),
                hidden=True,
                default='payment.modules.payflowpro'),
    BooleanValue(PAYMENT_GROUP,
                 'CAPTURE',
                 description=_('Capture Payment immediately?'),
                 default=True,
                 help_text=_('IMPORTANT: If false, a capture attempt will be '
                             'made when the order is marked as shipped.')),
    StringValue(PAYMENT_GROUP,
                'KEY',
                description=_("Module key"),
                hidden=True,
                default='PAYFLOWPRO'),
    StringValue(
        PAYMENT_GROUP,
        'LABEL',
        description=_('English name for this group on the checkout screens'),
        default='Credit Cards',
        dummy=_('Credit Cards'),  # Force this to appear on po-files
        help_text=_('This will be passed to the translation utility')),
    StringValue(PAYMENT_GROUP,
                'URL_BASE',
                description=_(
                    'The url base used for constructing urlpatterns which '
                    'will use this module'),
                default=r'^credit/'),
    MultipleStringValue(PAYMENT_GROUP,
                        'CREDITCHOICES',
                        description=_('Available credit cards'),
                        choices=(
                            (('American Express', 'American Express')),
                            (('Visa', 'Visa')),
                            (('Mastercard', 'Mastercard')),
                            (('Discover', 'Discover')),
                            (('Diners Club', 'Diners Club')),
                            (('JCB', 'JCB')),
                        ),
                        default=('Visa', 'Mastercard')),
    StringValue(PAYMENT_GROUP,
                'PARTNER',
                description=_("Your authorized PayPal reseller's id."),
                default="PayPal"),
    StringValue(PAYMENT_GROUP,
                'VENDOR',
                description=_(
                    "Your merchant login ID that you created when you "
                    "registered for the account."),
                default="VENDOR_ID"),
    StringValue(PAYMENT_GROUP,
                'USER',
                description=_(
                    "If you set up more additional users on the PayPal "
                    "account, this value is the ID of the user authorized to "
                    "process transactions. If you have not set up additional "
                    "users on the account, has the same value as VENDOR."),
                default="VENDOR_ID"),
    StringValue(PAYMENT_GROUP,
                'PASSWORD',
                description=_("Your PayflowPro account password"),
                default=""),

    #BooleanValue(PAYMENT_GROUP,
    #'CAPTURE',
    #description=_('Capture Payment immediately?'),
    #default=True,
    #help_text=_('IMPORTANT: If false, a capture attempt will be made when '
    #            'the order is marked as shipped.')),
    BooleanValue(PAYMENT_GROUP,
                 'EXTRA_LOGGING',
                 description=_("Verbose logs"),
                 help_text=_("Add extensive logs during post."),
                 default=False))