public punchoutconfig2() : base()
 {
     AllowedBuyerClientIds.Add("4fe9b9f2-8517-4ed0-ad5a-32765cba0c6d");
     SetupRequestMappings.Add(new DocumentValue("UniqueUserName", "", "cXML/Request/PunchOutSetupRequest/Extrinsic[@name='UserEmail']"));
     HeaderMappings.Add(new DocumentValue("FromCredDomain", "from cred", "cXML/Header/From/Credential/@domain"));
     HeaderMappings.Add(new DocumentValue("FromIdentity", "from id", "cXML/Header/From/Credential/Identity"));
     HeaderMappings.Add(new DocumentValue("ToCredDomain", "to cred", "cXML/Header/To/Credential/@domain"));
     HeaderMappings.Add(new DocumentValue("ToIdentity", "to id", "cXML/Header/To/Credential/Identity"));
     HeaderMappings.Add(new DocumentValue("SenderCredDomain", "sender domain value", "cXML/Header/Sender/Credential/@domain"));
     HeaderMappings.Add(new DocumentValue("SenderIdentity", "sender id", "cXML/Header/Sender/Credential/Identity"));
     HeaderMappings.Add(new DocumentValue("SenderSecret", "sender secret", "cXML/Header/Sender/Credential/SharedSecret"));
 }
 public punchoutconfig1() : base()
 {
     AllowedBuyerClientIds.Add("e9947356-f9c5-4a1d-b5dc-0581ac8d76da");
     SetupRequestMappings.Add(new DocumentValue("UniqueUserName", "", "cXML/Request/PunchOutSetupRequest/Extrinsic[@name='UserEmail']"));
     HeaderMappings.Add(new DocumentValue("FromCredDomain", "from domain value", "cXML/Header/From/Credential/@domain"));
     HeaderMappings.Add(new DocumentValue("FromIdentity", "AN01000002779-T", "cXML/Header/From/Credential/Identity"));
     HeaderMappings.Add(new DocumentValue("ToCredDomain", "to domain value", "cXML/Header/To/Credential/@domain"));
     HeaderMappings.Add(new DocumentValue("ToIdentity", "134470637-T", "cXML/Header/To/Credential/Identity"));
     HeaderMappings.Add(new DocumentValue("SenderCredDomain", "sender domain value", "cXML/Header/Sender/Credential/@domain"));
     HeaderMappings.Add(new DocumentValue("SenderIdentity", "*****@*****.**", "cXML/Header/Sender/Credential/Identity"));
     HeaderMappings.Add(new DocumentValue("SenderSecret", "four51four51", "cXML/Header/Sender/Credential/SharedSecret"));
 }
Example #3
0
 public demopunchout() : base()
 {
     AllowedBuyerClientIds.Add("134A73F3-4B12-4F9B-9A9B-BF1E137E3598");
     SetupRequestMappings.Add(new DocumentValue("UniqueUserName", "", "cXML/Request/PunchOutSetupRequest/Extrinsic[@name='UserEmail']"));
     HeaderMappings.Add(new DocumentValue("FromCredDomain", "from domain value", "cXML/Header/From/Credential/@domain"));
     HeaderMappings.Add(new DocumentValue("FromIdentity", "AN01000002779-T", "cXML/Header/From/Credential/Identity"));
     HeaderMappings.Add(new DocumentValue("ToCredDomain", "to domain value", "cXML/Header/To/Credential/@domain"));
     HeaderMappings.Add(new DocumentValue("ToIdentity", "134470637-T", "cXML/Header/To/Credential/Identity"));
     HeaderMappings.Add(new DocumentValue("SenderCredDomain", "sender domain value", "cXML/Header/Sender/Credential/@domain"));
     HeaderMappings.Add(new DocumentValue("SenderIdentity", "*****@*****.**", "cXML/Header/Sender/Credential/Identity"));
     HeaderMappings.Add(new DocumentValue("SenderSecret", "four51four51", "cXML/Header/Sender/Credential/SharedSecret"));
 }
        protected BasePunchoutConfig()
        {
            //these values set dynamically by the controller
            SetupRequestMappings.Add(new DocumentValue("ContactName", "", "cXML/Request/PunchOutSetupRequest/Contact/Name"));
            SetupRequestMappings.Add(new DocumentValue("ContactEmail", "", "cXML/Request/PunchOutSetupRequest/Contact/Email"));
            SetupRequestMappings.Add(new DocumentValue("BuyerCookie", "", "cXML/Request/PunchOutSetupRequest/BuyerCookie"));
            SetupRequestMappings.Add(new DocumentValue("BrowserFormPost", this.BrowserFormPost, "cXML/Request/PunchOutSetupRequest/BrowserFormPost/URL"));

            OrderRequestMappings.Add(new DocumentValue("OrderID", "", "cXML/Request/OrderRequest/OrderRequestHeader/@orderID"));
            OrderRequestMappings.Add(new DocumentValue("OrderDate", DateTime.Now.ToString("s"), "cXML/Request/OrderRequest/OrderRequestHeader/@orderDate"));
            OrderRequestMappings.Add(new DocumentValue("OrderTotal", "", "cXML/Request/OrderRequest/OrderRequestHeader/Total/Money"));
            HeaderMappings.Add(new DocumentValue("TimeStamp", DateTime.Now.ToString("s"), "cXML/@timestamp"));
            HeaderMappings.Add(new DocumentValue("PayloadID", Guid.NewGuid().ToString(), "cXML/@payloadID"));
        }