Example #1
0
        ErrorCode ParseResponseWithFeesHandler(int command_handle, string resp_json, PaymentMethodResultDelegate cb)
        {
            ParseResponseWithFeesAsync(resp_json)
            .ContinueWith(utxoJson =>
            {
                var result = cb(command_handle, 0, utxoJson.Result);
                CallbackHelper.CheckCallback(result);
            });

            return(ErrorCode.Success);
        }
Example #2
0
        ErrorCode BuildPaymentRequestHandler(int command_handle, IntPtr wallet_handle, string submitter_did, string inputs_json, string outputs_json, string extra, PaymentMethodResultDelegate cb)
        {
            BuildPaymentRequestAsync(submitter_did, inputs_json, outputs_json, extra)
            .ContinueWith(paymentReqJson =>
            {
                var result = cb(command_handle, 0, paymentReqJson.Result);
                CallbackHelper.CheckCallback(result);
            });

            return(ErrorCode.Success);
        }
Example #3
0
        ErrorCode BuildGetPaymentSourcesRequstHandler(int command_handle, IntPtr wallet_handle, string submitter_did, string payment_address, PaymentMethodResultDelegate cb)
        {
            BuildGetPaymentSourcesRequestAsync(submitter_did, payment_address)
            .ContinueWith(getUtxoTxnJson =>
            {
                var result = cb(command_handle, 0, getUtxoTxnJson.Result);
                CallbackHelper.CheckCallback(result);
            });

            return(ErrorCode.Success);
        }
Example #4
0
        ErrorCode CreatePaymentAddressHandler(int command_handle, IntPtr wallet_handle, string config, PaymentMethodResultDelegate cb)
        {
            CreatePaymentAddressAsync(config)
            .ContinueWith(paymentAddress =>
            {
                var result = cb(command_handle, 0, paymentAddress.Result);
                CallbackHelper.CheckCallback(result);
            });

            return(ErrorCode.Success);
        }
Example #5
0
        ErrorCode BuildVerifyPaymentRequestHandler(int command_handle, IntPtr wallet_handle, string submitterDid, string receipt, PaymentMethodResultDelegate cb)
        {
            BuildVerifyPaymentRequestAsync(submitterDid, receipt)
            .ContinueWith(feesJson =>
            {
                var result = cb(command_handle, 0, feesJson.Result);
                CallbackHelper.CheckCallback(result);
            });

            return(ErrorCode.Success);
        }
Example #6
0
        ErrorCode ParseVerifyPaymentResponseHandler(int command_handle, string responseJson, PaymentMethodResultDelegate cb)
        {
            ParseVerifyPaymentResponseAsync(responseJson)
            .ContinueWith(feesJson =>
            {
                var result = cb(command_handle, 0, feesJson.Result);
                CallbackHelper.CheckCallback(result);
            });

            return(ErrorCode.Success);
        }
Example #7
0
        ErrorCode AddRequestFeesHandler(int command_handle, IntPtr wallet_handle, string submitter_did, string req_json, string inputs_json, string outputs_json, PaymentMethodResultDelegate cb)
        {
            AddRequestFeesAsync(submitter_did, req_json, inputs_json, outputs_json)
            .ContinueWith(reqWithFeesJson =>
            {
                var result = cb(command_handle, 0, reqWithFeesJson.Result);
                CallbackHelper.CheckCallback(result);
            });

            return(ErrorCode.Success);
        }
Example #8
0
        ErrorCode BuildGetTxnFeesReqHandler(int command_handle, IntPtr wallet_handle, string submitter_did, PaymentMethodResultDelegate cb)
        {
            BuildGetTxnFeesAsync(submitter_did)
            .ContinueWith(getTxnFeesJson =>
            {
                var result = cb(command_handle, 0, getTxnFeesJson.Result);
                CallbackHelper.CheckCallback(result);
            });

            return(ErrorCode.Success);
        }
Example #9
0
 private ErrorCode ParseVerifyPaymentResponseHandler(int command_handle, string responseJson, PaymentMethodResultDelegate cb)
 {
     // var result = cb(command_handle, 0, feesJson.Result);
     return(ErrorCode.Success);
 }
Example #10
0
        private ErrorCode CreatePaymentAddressHandler(int command_handle, IntPtr wallet_handle, string config, PaymentMethodResultDelegate cb)
        {
            string paymentAddress = _handler.CreatePaymentAddress();

            cb(command_handle, (int)ErrorCode.Success, paymentAddress);
            return(ErrorCode.Success);
        }
Example #11
0
 private ErrorCode BuildVerifyPaymentRequestHandler(int command_handle, IntPtr wallet_handle, string submitterDid, string receipt, PaymentMethodResultDelegate cb)
 {
     return(ErrorCode.Success);
 }
Example #12
0
 private ErrorCode ParseGetTxnFeesResponseHandler(int command_handle, string resp_json, PaymentMethodResultDelegate cb)
 {
     return(ErrorCode.Success);
 }
Example #13
0
 private ErrorCode BuildGetTxnFeesReqHandler(int command_handle, IntPtr wallet_handle, string submitter_did, PaymentMethodResultDelegate cb)
 {
     return(ErrorCode.Success);
 }
Example #14
0
 private ErrorCode BuildMintReqHandler(int command_handle, IntPtr wallet_handle, string submitter_did, string outputs_json, string extra, PaymentMethodResultDelegate cb)
 {
     return(ErrorCode.Success);
 }
Example #15
0
 private ErrorCode BuildGetPaymentSourcesRequstHandler(int command_handle, IntPtr wallet_handle, string submitter_did, string payment_address, PaymentMethodResultDelegate cb)
 {
     return(ErrorCode.Success);
 }