Ejemplo n.º 1
0
import random
import decimal
from datetime import datetime
import traceback
from pos.point_of_sale.config import config
from pos.point_of_sale.verifications import postback_service
from pos.point_of_sale.utils import options
from pos.point_of_sale.verifications import asset
from pos.point_of_sale.verifications import emails
from pos.point_of_sale.verifications import mts as mt
from pos.point_of_sale.web import web
from pos.point_of_sale.bep import bep
from pos.point_of_sale.db_functions.dbactions import DBActions
from pos.point_of_sale.runners import test_methods
from pos.point_of_sale.config.TransActionService import TransActionService
db_agent = DBActions()
start_time = datetime.now()
pricepoints_options = 'single'
#url_options = config.template # options.ref_variables() + options.refurl() + config.template
# ==================================================================> for 511 and 510
#transguids = []
pricingguid = {}
#transids = []
rebills_pids = []
pricepoint_type = 0
dynamic_price = decimal.Decimal('%d.%d' %
                                (random.randint(3, 19), random.randint(0, 99)))
merchantbillconfig = []

# ==================================================================================================> Begining of the script
for merchantid in config.merchants:
Ejemplo n.º 2
0
import random
import decimal
from datetime import datetime

from pos.point_of_sale.config import config
from pos.point_of_sale.utils import options
from pos.point_of_sale.verifications import asset, postback_service
from pos.point_of_sale.verifications import emails
from pos.point_of_sale.verifications import mts as mt
from pos.point_of_sale.db_functions.dbactions import DBActions
from pos.point_of_sale.web import web

db_agent = DBActions()
current_date = (datetime.now().date())
pricepoints = []
report = {}
# ==================================================================> Configuration
#config.enviroment = 'stage'
enviroment = config.enviroment
merchants = [27001]
packageid = 99
processors = [65]
pricepoints_options = 'single'
# ==================================================================> Options
refurl = options.refurl()
ref_variables = options.ref_variables()
template = ''  # '&template=defaultnopaypal'
url_options = ref_variables + refurl + template

available_currencies = ['USD', "AUD", "CHF", "EUR",
                        "GBP"]  #, "HKD", "JPY", "NOK", "SEK"] # "DKK",
import random
import decimal
from datetime import datetime

from pos.point_of_sale.config import config
from pos.point_of_sale.verifications import postback_service
from pos.point_of_sale.utils import options
from pos.point_of_sale.verifications import asset
from pos.point_of_sale.verifications import emails
from pos.point_of_sale.verifications import mts as mt
from pos.point_of_sale.web import web
from pos.point_of_sale.bep import bep
from pos.point_of_sale.db_functions.dbactions import DBActions

db_agent = DBActions()
start_time = datetime.now()
pricepoints_options = 'single'
url_options = config.template  # options.ref_variables() + options.refurl() + config.template
# ==================================================================> for 511 and 510
pricingguid = {}
transids = []
pricepoint_type = 0
dynamic_price = decimal.Decimal('%d.%d' %
                                (random.randint(3, 19), random.randint(0, 99)))
merchantbillconfig = []

# ==================================================================================================> Begining of the script
for merchantid in config.merchants:
    try:
        if pricepoints_options == 'type':
            pricepoints = db_agent.pricepoint_type(merchantid,
Ejemplo n.º 4
0
from datetime import datetime
from datetime import timedelta
from termcolor import colored
from pos.point_of_sale.bep import bep
from pos.point_of_sale.config import config
import copy
import traceback
import time
from pos.point_of_sale.utils import constants
from pos.point_of_sale.db_functions.dbactions import DBActions
from pos.point_of_sale.utils import options

db_agent = DBActions()


def build_asset_signup(multitrans_base_record, multitrans_live_record):
    type = config.test_data['Type']
    asset = {}
    live_record = multitrans_live_record['full_record']
    current_date = (datetime.now().date())
    try:
        asset = {
            'RecurringAmount': config.test_data['RebillPrice'],
            'PurchType': config.test_data['Type'],
            'PurchPeriod': config.test_data['RebillLen'],
            'MerchantID': live_record['MerchantID'],
            'URLID': live_record['URLID'],
            'PackageID': live_record['PackageID'],
            'BillConfigID': live_record['BillConfigID'],
            'CardType': live_record['CardType'],
            'InitialAmount': multitrans_base_record['TransAmount'],
import traceback
from datetime import datetime
from functools import partial
from pos.point_of_sale.bep import bep
from pos.point_of_sale.config import config
from pos.point_of_sale.config.TransActionService import TransActionService
from pos.point_of_sale.db_functions.dbactions import DBActions
from pos.point_of_sale.runners import test_methods
from pos.point_of_sale.verifications import asset
from pos.point_of_sale.verifications import emails
from pos.point_of_sale.verifications import mts as mt
from pos.point_of_sale.web import web
from pos.point_of_sale.utils import options
import yaml

db_agent = DBActions()
start_time = datetime.now()

actions = {
    'singup':
    partial(test_methods.sign_up_trans_web),
    'oneclick_pos':
    partial(test_methods.signup_oc, 'pos', config.test_data['eticket'],
            config.test_data),
    'oneclick_pos_all':
    partial(test_methods.signup_oc_all, 'pos', config.test_data['eticket'],
            config.test_data
            ),  # iterrate all pricpoints in 1 click to all pricepoints
    'captures':
    partial(bep.process_captures),
    'check_captures':