public BitPayTest() { try { // This scenario qualifies that this (test) client does not have merchant facade access. bitpay = new BitPay(clientName); if (!bitpay.clientIsAuthorized(BitPay.FACADE_POS)) { // Get POS facade authorization. // Obtain a pairingCode from your BitPay account administrator. When the pairingCode // is created by your administrator it is assigned a facade. To generate invoices a // POS facade is required. bitpay.authorizeClient(pairingCode); } } catch (Exception ex) { Assert.Fail(ex.Message); } }