Пример #1
0
        public void testChange()
        {
            LinkIDLTQRContent content = new LinkIDLTQRContent();

            content.authenticationMessage = "foo";
            content.finishedMessage       = "bar";
            content.paymentContext        = new LinkIDPaymentContext(new LinkIDPaymentAmount(20000, LinkIDCurrency.EUR, null),
                                                                     "blaat", null, null);
            content.expiryDate = DateTime.Now.AddMonths(3);

            LinkIDLTQRSession session = client.ltqrChange(ltqrReference, content, null, false, false);

            Assert.NotNull(session);
        }
Пример #2
0
        public void testPush()
        {
            LinkIDLTQRContent content = new LinkIDLTQRContent();

            content.authenticationMessage = "foo";
            content.finishedMessage       = "bar";
            content.paymentContext        = new LinkIDPaymentContext(new LinkIDPaymentAmount(20000, LinkIDCurrency.EUR, null),
                                                                     "blaat", null, null);
            content.expiryDate = DateTime.Now.AddMonths(3);

            LinkIDLTQRSession session = client.ltqrPush(content, null, LinkIDLTQRLockType.NEVER);

            Assert.NotNull(session);
        }