Exemple #1
0
        static void Main(string[] args)
        {
        	//Eid: 1111 Replace with your eid. You can find it in Billmate-Online
        	//Secret: 111111111111 Replace with your secret. You can find it in Billmate-Online
        	//SSL: false SSl should be enabled or not
        	//Debug: true View more detailed information about the server communication
        	//Invoiceid: 111 View more detailed information about the server communication
        	//Personal number: 556000-0753
        	
            Console.WriteLine("Start");
            Billmate bm = new Billmate(1111, "111111111111", false, true);
            Address adress = new Address("*****@*****.**", "0760123456", "0760123456", "Test.net", "test api", "streetname no", "zipcode", "city", 209);
            AdditionalInfo ai = new AdditionalInfo("");

            Article[] articles = new Article[3];
            articles[0] = new Article(1, "VGN-TXN27N/B", "Sony VAIO VGN-TXN27N/B 11.1 Notebook PC", 337499, 25, 0, 32);
            articles[1] = new Article(1, "flatrate_flatrate", "Frakt - Fixed", 6250, 25, 0, 40);
            articles[2] = new Article(1, "invoice_fee", "Faktureringsavgift", 3625, 25, 0, 48);
            object[] result = (object[])bm.ActivateReservation("111", "556000-0753", adress, adress, articles, ai);

            foreach (object row in result)
            {
                Console.WriteLine(row.ToString());
            }

            Console.ReadLine();
        }
Exemple #2
0
        static void Main(string[] args)
        {
	        //Eid: 1111 Replace with your eid. You can find it in Billmate-Online
	        //Secret: 111111111111 Replace with your secret. You can find it in Billmate-Online
	        //SSL: false SSl should be enabled or not
	        //Debug: true View more detailed information about the server communication
	        //Invoiceid: 111 View more detailed information about the server communication
	        
            Console.WriteLine("Start");
            Billmate bm = new Billmate(1111, "111111111111", false, true);

            string result = (string)bm.CheckInvoiceStatus("111");

            Console.WriteLine(result);

            Console.ReadLine();
        }
Exemple #3
0
        static void Main(string[] args)
        {
            //Eid: 1111 Replace with your eid. You can find it in Billmate-Online
            //Secret: 111111111111 Replace with your secret. You can find it in Billmate-Online
            //SSL: false SSl should be enabled or not
            //Debug: true View more detailed information about the server communication
            //Order id: 111 View more detailed information about the server communication
            
            Console.WriteLine("Start");
            Billmate bm = new Billmate(1111, "111111111111", false, true);
            

            string result = (string)bm.CheckOrderStatus("111");

            if (Billmate.ACCEPTED == result) Console.WriteLine("Accepted");
            else if (Billmate.PENDING == result) Console.WriteLine("Pending");
            else if (Billmate.DENIED == result) Console.WriteLine("Denied");

            Console.ReadLine();
        }
Exemple #4
0
 static void Main(string[] args)
 {
     //Eid: 1111 Replace with your eid. You can find it in Billmate-Online
     //Secret: 111111111111 Replace with your secret. You can find it in Billmate-Online
     //SSL: false SSl should be enabled or not
     //Debug: true View more detailed information about the server communication
     //Personal number: 556000-0753
     
     Console.WriteLine("Start");
     Billmate bm = new Billmate(1111, "111111111111", false, true);
     
     bm.ClientIP = "192.0.0.1";
     Array aa = (Array)bm.GetAddress("556000-0753");
     foreach (string[] address in aa)
     {
         foreach(string row in address){
             Console.WriteLine(row);
         }
     }
     Console.ReadLine();
 }
Exemple #5
0
        static void Main(string[] args)
        {
            //Eid: 1111 Replace with your eid. You can find it in Billmate-Online
            //Secret: 111111111111 Replace with your secret. You can find it in Billmate-Online
            //SSL: false SSl should be enabled or not
            //Debug: true View more detailed information about the server communication
            //Personal number: 556000-0753
            //Amount: 10000 = (100 SEK*100)
            
            Console.WriteLine("Start");
            Billmate bm = new Billmate(1111, "111111111111", false, true);
            


            object[] result = (object[])bm.CreditCheck("747", "556000-0753", "10000", "*****@*****.**", "0760000000");

            foreach (object row in result)
            {
                Console.WriteLine(row.ToString());
            }

            Console.ReadLine();
        }
Exemple #6
0
        static void Main(string[] args)
        {
            //Eid: 1111 Replace with your eid. You can find it in Billmate-Online
            //Secret: 111111111111 Replace with your secret. You can find it in Billmate-Online
            //SSL: false SSl should be enabled or not
            //Debug: true View more detailed information about the server communication
            
            Console.WriteLine("Start");
            Billmate bm = new Billmate(1111, "111111111111", false, true);
            

            AdditionalInfo ai = new AdditionalInfo("0", "209", "138");

            object[] result = (object[])bm.FetchCampaigns(ai);

            foreach (object[] row in result)
            {
                foreach (object cell in row)
                    Console.WriteLine(cell.ToString());
            }

            Console.ReadLine();
        }