Esempio n. 1
0
        // GET: TokenPayment
        public IActionResult Index()
        {
            var passportId = _service.GetServerPassportId();
            var network    = "neo";
            var amount     = 1;
            var address    = "ALEN8KC46GLaadRxaWdvYBUhdokT3RhxPC";
            var identifier = Guid.NewGuid().ToString();

            return(View(new TokenPaymentViewModel
            {
                BridgeProtocol_PassportId = passportId,
                BridgeProtocol_PaymentNetwork = network,
                BridgeProtocol_PaymentAddress = address,
                BridgeProtocol_PaymentAmount = amount,
                BridgeProtocol_PaymentIdentifier = identifier,
                BridgeProtocol_PaymentRequest = _service.CreatePaymentRequest(network, amount, address, identifier)
            }));
        }