Beispiel #1
0
        public void GetInvoice()
        {
            DC.Providers.DigitalBTC dbtc = new DC.Providers.DigitalBTC();

            String var = dbtc.getInvoice();


            Assert.IsNotNull(var);
        }
Beispiel #2
0
        public void BuyBTCfromDigitalBTC()
        {
            DC.Providers.DigitalBTC digitalbtc = new DC.Providers.DigitalBTC();
            Decimal btcAmount = 0.046687M;

            PriceData pricedata = digitalbtc.GetSpotPrice2(btcAmount, "USD");

            float     price          = (float)pricedata.Price;
            float     btcorderamount = (float)btcAmount;
            OrderData orderdata      = digitalbtc.Order(price, btcorderamount);
        }
Beispiel #3
0
        public void ChargeCard()
        {
            //     DcPayment.Card cc = new DcPayment.Card();


            DC.Providers.DigitalBTC dbtc = new DC.Providers.DigitalBTC();
            //   cc.ChargeCreditCard("4645790048147002", 100, "Stephen", "Rowlison", "8/23 Gordon St", "Labrador", "4215", "QLD", "Australia", "0400826669", "04031964", "*****@*****.**", "Stephen Rowlison", "07", "17", "171", "AUD");

            // PriceData pricedata = dbtc.GetSpotPrice(2, "USD");


            //float price = 1;
            // float amount = 1;
            // pricedata.Price += 1M;

            //    dbtc.Order((float)pricedata.Price, (float)2M);
        }