Esempio n. 1
0
ptrc_serviceId = dataquery.getServiceId("TEST", "Paytrace", "HostCap", "Host")

ngt_MerchProfId = "HCRestaurantMerch"
#trn_MerchProfId = "EVOIntl_SOAP_Ecommerce_HostCap_TestHost"
trn_MerchProfId = "TRN_Ecommerce_SBX"
ptrc_MerchProfId = "PayTrace_SOAP_Restaurant_HC_TestHost"
eSvc_MerchProfId = "eServices_SOAP_CardPresent_HC"

#TRON Tests
trn_ngt_sessiontoken = SignOn.SignOnWithToken(base_url, trn_ngt_IdentityToken)
guid = TPS.Authorize(base_url,
                     trn_ngt_sessiontoken,
                     "911C800001",
                     MerchantProfileId=ngt_MerchProfId,
                     CustomerPresent="Present",
                     EcommerceSecurityData=None,
                     CardSecurityData=None,
                     AlternativeMerchantData=None,
                     ApplicationConfigurationData=None,
                     Level2Data=None,
                     InterchangeData=None,
                     CustomerData=None)
#TPS.Capture(base_url,trn_ngt_sessiontoken,"911C800001",guid)
#TPS.Capture(base_url,trn_ngt_sessiontoken,"911C800001",guid)

#TPS.Authorize(base_url,trn_ngt_sessiontoken,trn_serviceId,MerchantProfileId=trn_MerchProfId,CVData="123",CVDataProvided="Provided",EcommerceSecurityData=None,AVSData=None)
"""
TPS.Authorize(base_url,trn_ngt_sessiontoken,trn_serviceId,MerchantProfileId=trn_MerchProfId,CVData="123",CVDataProvided="Provided",Amount="1")
TPS.Authorize(base_url,trn_ngt_sessiontoken,trn_serviceId,MerchantProfileId=trn_MerchProfId,CVData="123",CVDataProvided="Provided",Amount="1.001")
TPS.Authorize(base_url,trn_ngt_sessiontoken,trn_serviceId,MerchantProfileId=trn_MerchProfId,CVData="123",CVDataProvided="Provided",Amount="1.1")
TPS.Authorize(base_url,trn_ngt_sessiontoken,trn_serviceId,MerchantProfileId=trn_MerchProfId,CVData="123",CVDataProvided="Provided",Amount="0.002")
TPS.Authorize(base_url,trn_ngt_sessiontoken,trn_serviceId,MerchantProfileId=trn_MerchProfId,CVData="123",CVDataProvided="Provided",Amount="2200.")
Esempio n. 2
0
        "https://dropit.3dsecure.net/PIT/DS",
        "RootCertificate":
        "MIICoTCCAgqgAwIBAgIJAPnFSzeYi+lbMA0GCSqGSIb3DQEBBQUAMEAxCzAJBgNVBAYTAlVTMRAwDgYDVQQKEwdDYXJhZGFzMQwwCgYDVQQLEwNQSVQxETAPBgNVBAMTCHBpdC1yb290MB4XDTE0MDMwNjA0MzUxMFoXDTI0MDMwMzA0MzUxMFowQDELMAkGA1UEBhMCVVMxEDAOBgNVBAoTB0NhcmFkYXMxDDAKBgNVBAsTA1BJVDERMA8GA1UEAxMIcGl0LXJvb3QwgZ8wDQYJKoZIhvcNAQEBBQADgY0AMIGJAoGBAKG7diarDQg17UjmvJasHFSjWhPdb9/9pXZvWAKuc9wqqjD3nvU6w+uJtYIFqN4vXC+jk7ek4VF7jvkDF3R00fnHl6wOVufzQlFA7+QXpWTMGsb6yywhXMwVbcO8u14cGV/x+5VewkTgrVRbqZlOXImellNvW1fsJ5HiSVfH8eylAgMBAAGjgaIwgZ8wHQYDVR0OBBYEFNk33h9Q1BGfio7uxKNe2lYd1HuJMHAGA1UdIwRpMGeAFNk33h9Q1BGfio7uxKNe2lYd1HuJoUSkQjBAMQswCQYDVQQGEwJVUzEQMA4GA1UEChMHQ2FyYWRhczEMMAoGA1UECxMDUElUMREwDwYDVQQDEwhwaXQtcm9vdIIJAPnFSzeYi+lbMAwGA1UdEwQFMAMBAf8wDQYJKoZIhvcNAQEFBQADgYEAIeZZtXQqlBK04a2gimGko/aL2YWMRgh04yTK+jw7OkJ/UWdA1g78UJk5/rTJ92579io5rsmLHXV+uWc6Wr6IFO4AfxiQv+GW/PMQ8pu49o8ev9yTvYaos8XP4zdUO4RsXBw9rYRuSP4Ov2tOKKPomOJLabS58GAlCouk774/xTE="
    }, {
        "MerchantNumber": "1234567890",
        "MerchantBankId": "123456",
        "MerchantUrl": "http://www.evosnap.com",
        "CardBrand3DSecureProgram": "Visa_VerifiedByVisa",
        "DirectoryServerUrl": "https://dropit.3dsecure.net/PIT/DS",
        "RootCertificate": "MIICoTCCAgqgA"
    }]
}
#SIS.SaveMerchantProfiles(base_url,sessiontoken,**EcommHC_Visa)
#SIS.GetMerchantProfile(base_url,sessiontoken,"Generic_Ecomm_HC","35EDC00001")

AuthResp = TPS.AuthorizeAndCapture(base_url, sessiontoken,
                                   **GenericTests.MPI["Is3D_False"])
TPS.ReturnById(base_url,
               sessiontoken,
               "35EDC00001",
               AuthResp["TransactionId"],
               TenderData=None,
               Amount="1.00")
if AuthResp["PaymentAuthorizationRequest"]:
    PaRes = TPS.GetPARes(AuthResp["PaymentAuthorizationRequest"])
    GUID = TPS.Resubmit(base_url,
                        sessiontoken,
                        ServiceId="35EDC00001",
                        TxnGUID=AuthResp["TransactionId"],
                        PaymentAuthorizationResponse=PaRes,
                        ResubmitReason="Resubmission",
                        CVV="200")
Esempio n. 3
0
from httprequests import SignOn, TPS, SIS, TMS
from testcases import GenericTests

base_url = "https://us002-dv-cip01.evosnap.local/2.1.23/TPS.svc"

Idt = ""
sessiontoken = SignOn.SignOnWithToken(base_url,Idt)

TPS.Authorize(base_url,sessiontoken,**GenericTests.AllRules["BillingAdrHappy"])
Esempio n. 4
0
from httprequests import Admin, SignOn, SIS, TPS
from miscutils import dataquery
from testcases import GenericTests

base_url = "https://api.ciptest.goevo.local/2.1.26/REST/"
"""
sixb_sessiontoken = SignOn.SignOnWithToken(base_url,dataquery.getIdentityToken("TEST","6B2866C8FD500001"))

Admin.ListScopes(base_url,sixb_sessiontoken)
Admin.ListRoles(base_url,sixb_sessiontoken,"2")
Admin.ListRoleClaims(base_url,sixb_sessiontoken,"EnterpriseUser")
Admin.GetMerchants(base_url,sixb_sessiontoken,ServiceKey="6B2866C8FD500001")
Admin.GetPaymentApplications('https://us002-dv-cip01.evosnap.local/2.1.26/REST/',"PHNhbWw6QXNzZXJ0aW9uIE1ham9yVmVyc2lvbj0iMSIgTWlub3JWZXJzaW9uPSIxIiBBc3NlcnRpb25JRD0iX2FlNjl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TE5QWDBOYmJZeEE3TVpxd2hSZkxJcFd2VkE9PC9vOktleUlkZW50aWZpZXI+PC9vOlNlY3VyaXR5VG9rZW5SZWZlcmVuY2U+PC9LZXlJbmZvPjwvU2lnbmF0dXJlPjwvc2FtbDpBc3NlcnRpb24+")
#SIS.SaveMerchantProfiles(base_url,session_token,ProfileId="TestAlanProfile2",ServiceId="3CF9E00001",CardBrandIdentifiers_3DSecure=None)
#Admin.CreateUser_Secure("https://api.ciptest.goevo.local/2.1.26/",session_token,Email="*****@*****.**",FirstName="Alan",LastName="Zuckerman",Username="******",MerchantProfileId="TestAlanProfile",ServiceKey="6B2866C8FD500001",Role="MerchantUser")
#Admin.CreateUser_Secure("https://api.ciptest.goevo.local/2.1.26/",session_token,Username="******",Email="*****@*****.**",FirstName="Alan",LastName="Zuckerman",MerchantInfo=None)

#SignOn.ChangePassword(base_url,"TestAlan24","Ha43Sqg8","6B2866C8FD500001","Passw0rd1")
#user_sessiontoken= SignOn.SignOnWithUsernamePassword(base_url,"TestAlan24","Passw0rd1","6B2866C8FD500001")["SessionToken"]
#TPS.Authorize(base_url,user_sessiontoken,**GenericTests.AllRules["CreateUserTest"])

sixb_sessiontoken = SignOn.SignOnWithToken(
    base_url, dataquery.getIdentityToken("TEST", "6B2866C8FD500001"))
TPS.Authorize(base_url, sixb_sessiontoken, **GenericTests.MPI["Magensa"])
Esempio n. 5
0
from httprequests import SignOn, SIS, TPS
from testcases import CWSRules24R1

base_url = "https://api.cipcert.goevo.com/2.1.23/REST/"
IdentityToken = "PHNhbWw6QXNzZXJ0aW9uIE1ham9yVmVyc2lvbj0iMSIgTWlub3JWZXJzaW9uPSIxIiBBc3NlcnRpb25JRD0iXzQxMjU4YjM3LTU2NmItNDg0ZC1hYzU2LWUxY2VlYzlmNDE0MCIgSXNzdWVyPSJJcGNBdXRoZW50aWNhdGlvbiIgSXNzdWVJbnN0YW50PSIyMDE1LTAzLTA5VDE2OjEwOjU2LjEzMFoiIHhtbG5zOnNhbW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puK1dYY3Y1a2JJc055TjdRc2FTWDdPWi82b1drWi9KdmtLS0FiL0U2SUhIbXRBdDQ4dnRrMFNOMTJEcHVqenZPVmUwaHF6R09HQVVxTEdsa3FTUEliQVdTbkIwMVFBbE5JUjkvNzdtbU5VcnRJbTlWN2FNYlBFZE5hMitFY1cvYUFBNU4rMmxrMGowOWtRcm9SdnYyV0dsblpFTE5pZjZOU24wZithSjkvSXg2R3l0OWFUQlNIWU01ekZLL1FtcE9rRnUxSDViMVNUcXRRTG5EcFVMRWxSc0t5TDJKSk9JcG9CSWZvTWFhTUJHaERFQUNIYnJPMlpra1l6cSsrV2Z2NFBZczRKV2p0UE5EdVpnQWgyUGFiUlhMUFJ5RjRWdThDY2FYbWIyTTR0UFo4NExKTDZHdHptNWpPM3ZNemxKbUFRPT08L1NpZ25hdHVyZVZhbHVlPjxLZXlJbmZvPjxvOlNlY3VyaXR5VG9rZW5SZWZlcmVuY2UgeG1sbnM6bz0iaHR0cDovL2RvY3Mub2FzaXMtb3Blbi5vcmcvd3NzLzIwMDQvMDEvb2FzaXMtMjAwNDAxLXdzcy13c3NlY3VyaXR5LXNlY2V4dC0xLjAueHNkIj48bzpLZXlJZGVudGlmaWVyIFZhbHVlVHlwZT0iaHR0cDovL2RvY3Mub2FzaXMtb3Blbi5vcmcvd3NzL29hc2lzLXdzcy1zb2FwLW1lc3NhZ2Utc2VjdXJpdHktMS4xI1RodW1icHJpbnRTSEExIj5iQkcwU0cvd2RCNWJ4eVpyYjEvbTVLakhLMU09PC9vOktleUlkZW50aWZpZXI+PC9vOlNlY3VyaXR5VG9rZW5SZWZlcmVuY2U+PC9LZXlJbmZvPjwvU2lnbmF0dXJlPjwvc2FtbDpBc3NlcnRpb24+"
sessiontoken = SignOn.SignOnWithToken(base_url,IdentityToken)
SIS.GetServiceInformation(base_url,sessiontoken)
#SIS.GetMerchantProfiles(base_url,sessiontoken)

Scenario_CustPres = ["CustPresent"]
for testcase in Scenario_CustPres:
    TPS.Authorize(base_url,sessiontoken,**CWSRules24R1.TPSTestCases[testcase])
Esempio n. 6
0
TPS.Authorize(base_url,fourd_sessiontoken,**SBXregression.MPI["MPI_NotEnrolled"])
print("-------------------")

### PINDebit Tests ###
PINDebit_GUID = TPS.AuthorizeAndCapture(base_url,fourd_sessiontoken,**SBXregression.PINDebit["PINDebit_Basic"])["TransactionId"]
TPS.ReturnById(base_url,fourd_sessiontoken,TxnGUID=PINDebit_GUID,**SBXregression.PINDebit["PINDebit_Basic"])
print("-------------------")

### Email Receipts ###
for tcname, testcase in SBXregression.EmailReceipt.items():
    print(tcname)
    Email_Guid = TPS.Authorize(base_url,fourd_sessiontoken,**testcase)["TransactionId"]
    TPS.SendReceipt(base_url,fourd_sessiontoken,Email_Guid,"*****@*****.**")
    print("-------------------")
"""
resp = TPS.Authorize(base_url, fourd_sessiontoken,
                     **SBXregression.Generic_Sandbox["EMVData"])
UndoData = {
    "Track2Data": "4003000123456781=15125025432198712345",
    "CardSecurityData": None,
    "EcommerceSecurityData": None,
    "CardholderIdType": "Manual",
    "TenderType": "ProcessAsCredit",
    "TokenInformation": None,
    "EMVData": {
        "ApplicationId": "A0000001523010",
        "ApplicationInterchangeProfile": "5800",
        "ApplicationTransactionCount": "0001",
        "ApplicationUsageControl": None,
        "ApplicationVersionNumber": "0001",
        "AuthorizationAmount": "000000003700",
        "AuthorizationResponseCode": None,
Esempio n. 7
0
#SIS.GetServiceInformation(base_url,session_token)
#SIS.SaveMerchantProfiles(base_url,session_token,ProfileId="EVO_SOAP_Restaurant_HostCap",ServiceId="911C800001")
#TMS.QueryTransactionsSummary(base_url,session_token,MerchantProfileIds = ["Auto_SOAP_Ecommerce_A"])
#auth_guid = TPS.Authorize(base_url,session_token,"911C800001",Amount= "2.00",MerchantProfileId="EVO_SOAP_Restaurant_HostCap")
base_url = "https://api.ciptest.goevo.local/2.1.22/REST/"
IdentityToken = dataquery.getIdentityToken("TEST","6B2866C8FD500001")
session_token = SignOn.SignOnWithToken(base_url,IdentityToken)
TMS.QueryTransactionsSummary(base_url,session_token,MerchantProfileIds = ["Auto_SOAP_Ecommerce_A"])
#SIS.GetServiceInformation(base_url,session_token)
#SIS.GetMerchantProfiles(base_url,session_token)
#guid = TPS.Authorize(base_url,session_token,"372EC00001",MerchantProfileId="EVOIntl_SOAP_Ecommerce_HostCap",CVData="123",CVDataProvided="Provided")
#TPS.Resubmit(base_url,session_token,"372EC00001",guid,ResubmitReason="Resubmission")



"""
IdentityToken = dataquery.getIdentityToken("TEST","BBE2F64B19200001")
base_url = "https://api.ciptest.goevo.local/REST/2.0.22/"

#session_token = SignOn.SignOnWithToken(base_url,IdentityToken)
session_token = SignOn.SignOnWithUsernamePassword(base_url,"RestUser1","Passw0rd4","3196F64B19200001")["SessionToken"]
auth_guid = TPS.Authorize(base_url,session_token,"1257A00001",Amount= "2.00")
TPS.Undo(base_url,session_token,"1257A00001",auth_guid)
TMS.QueryTransactionsSummary(base_url,session_token,MerchantProfileIds = ["Auto_SOAP_Ecommerce_A"])

SignOn.GetUserExpiration(base_url,"RestUser1","Passw0rd3","3196F64B19200001")
SignOn.ChangePassword(base_url,"RestUser1","Passw0rd3","3196F64B19200001","Passw0rd4")
session_token = SignOn.DelegatedSignOn(base_url,"3196F64B19200001",IdentityToken)
session_token = SignOn.SignOnWithUsernamePassword(base_url,"RestUser1","Passw0rd4","3196F64B19200001")["SessionToken"]
SIS.SaveMerchantProfiles(base_url,session_token,ProfileId="Auto_SOAP_Ecommerce_A")
TMS.QueryTransactionsSummary(base_url,session_token,MerchantProfileIds = ["Auto_SOAP_Ecommerce_A"])
Esempio n. 8
0
from httprequests import SignOn, TPS, SIS
from testcases import testhostregression
from miscutils import dataquery

base_url = "https://api.ciptest.goevo.local/2.1.26/REST/"

sixb_sessiontoken = SignOn.SignOnWithToken(
    base_url, dataquery.getIdentityToken("TEST", "6B2866C8FD500001"))

#SIS.SaveMerchantProfiles(base_url,sixb_sessiontoken,**testhostregression.NGT_HC_MPIDs["RetailHC"])
TPS.AuthorizeAndCapture(base_url, sixb_sessiontoken,
                        **testhostregression.NGTrans["Poynt_PIN"])
Esempio n. 9
0
from httprequests import SignOn, TPS, SIS

IdentityToken = 'PHNhbWw6QXNzZXJ0aW9uIE1ham9yVmVyc2lvbj0iMSIgTWlub3JWZXJzaW9uPSIxIiBBc3NlcnRpb25JRD0iX2I3MTRlMGIzLWE3MWQtNDExZC1hNDE4LTJlMDIxMTVkNjMzMSIgSXNzdWVyPSJJcGNBdXRoZW50aWNhdGlvbiIgSXNzdWVJbnN0YW50PSIyMDE0LTAzLTEwVDIyOjQzOjExLjA1OFoiIHhtbG5zOnNhbWw9InVybjpvYXNpczpuYW1lczp0YzpTQU1MOjEuMDphc3NlcnRpb24iPjxzYW1sOkNvbmRpdGlvbnMgTm90QmVmb3JlPSIyMDE0LTAzLTEwVDIyOjQzOjExLjA1OFoiIE5vdE9uT3JBZnRlcj0iMjAxNy0wMy0xMFQyMjo0MzoxMS4wNThaIj48L3NhbWw6Q29uZGl0aW9ucz48c2FtbDpBZHZpY2U+PC9zYW1sOkFkdmljZT48c2FtbDpBdHRyaWJ1dGVTdGF0ZW1lbnQ+PHNhbWw6U3ViamVjdD48c2FtbDpOYW1lSWRlbnRpZmllcj5BQjMzQzhCQUJFMzEzMDBDPC9zYW1sOk5hbWVJZGVudGlmaWVyPjwvc2FtbDpTdWJqZWN0PjxzYW1sOkF0dHJpYnV0ZSBBdHRyaWJ1dGVOYW1lPSJTQUsiIEF0dHJpYnV0ZU5hbWVzcGFjZT0iaHR0cDovL3NjaGVtYXMuaXBjb21tZXJjZS5jb20vSWRlbnRpdHkiPjxzYW1sOkF0dHJpYnV0ZVZhbHVlPkFCMzNDOEJBQkUzMTMwMEM8L3NhbWw6QXR0cmlidXRlVmFsdWU+PC9zYW1sOkF0dHJpYnV0ZT48c2FtbDpBdHRyaWJ1dGUgQXR0cmlidXRlTmFtZT0iU2VyaWFsIiBBdHRyaWJ1dGVOYW1lc3BhY2U9Imh0dHA6Ly9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3NhZ2Utc2VjdXJpdHktMS4xI1RodW1icHJpbnRTSEExIj54QVQzaU4yalZ5bkhkb1ZSMWxxdmlmU2tiVlE9PC9vOktleUlkZW50aWZpZXI+PC9vOlNlY3VyaXR5VG9rZW5SZWZlcmVuY2U+PC9LZXlJbmZvPjwvU2lnbmF0dXJlPjwvc2FtbDpBc3NlcnRpb24+'
MerchantProfileId = 'SnapProdGHC'
ServiceId = '4379D1300C'
base_url = "https://api.cip.goevo.com/2.1.25/REST/"

trn_ngt_sessiontoken = SignOn.SignOnWithToken(base_url, IdentityToken)
#SIS.SaveMerchantProfiles(base_url,trn_ngt_sessiontoken,ProfileId="SnapProdGHC",ServiceId="4379D1300C",TerminalId="54747",MerchantId="54747_EVO",ServiceName="EVO Intl GmbH BCP Host Capture")
#SIS.GetMerchantProfile(base_url,trn_ngt_sessiontoken,MerchantProfileId,ServiceId)
TPS.Authorize(base_url,
              trn_ngt_sessiontoken,
              ServiceId,
              MerchantProfileId=MerchantProfileId,
              CVData="123",
              CVDataProvided="Provided",
              PAN="4003000123456781",
              Expire="1215",
              ApplicationProfileId="1",
              CustomerData=None,
              EMVData=None,
              ApplicationConfigurationData=None,
              EcommerceSecurityData=None,
              AlternativeMerchantData=None,
              AVSData=None,
              IntlAVSData=None,
              Level2Data=None,
              InterchangeData=None)