Coder Social home page Coder Social logo

csharp-bitpay-client's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

csharp-bitpay-client's Issues

BouncyCastle build for .net 3.5 instead of 4.0?

Trying to build Portable.Licensing on .net framework 3.5 to integrate with another application which is on 3.5. But BouncyCastle.Crypto is causing this error:

{System.BadImageFormatException: Could not load file or assembly 'BouncyCastle.Crypto, Version=1.7.4771.41295, Culture=neutral, PublicKeyToken=null' or one of its dependencies. This assembly is built by a runtime newer than the currently loaded runtime and cannot be loaded.
File name: 'BouncyCastle.Crypto, Version=1.7.4771.41295, Culture=neutral, PublicKeyToken=null'

the runtime version of BoucyCastle.Crypto is v4.0.30319

i need BouncyCastle.Crypto on .net framework 3.5. How can i achieve this?

The type 'EcKey' is defined in an assembly that is not referenced. You must add a reference to assembly 'BitCoinSharp, Version=0.2.199.60, Culture=neutral, PublicKeyToken=null'

Even when the dependency is satisfied, another issue comes up:

{"Could not load file or assembly
'BouncyCastle.Crypto, Version=1.7.4114.6375, Culture=neutral, PublicKeyToken=0e99375e54769942'
or one of its dependencies. The located assembly's manifest definition does not match the assembly reference.
(Exception from HRESULT: 0x80131040)":"BouncyCastle.Crypto, Version=1.7.4114.6375, Culture=neutral, PublicKeyToken=0e99375e54769942"}

Refunds?

Hi guys
I'm implementing BitPay API working with the DLL you guys shared and everything's going pretty good, (invoices, rates, ledgers, etc), but now my client wants to deploy refunds in our implementation so, I started to look into the DLL and I didn't find anything in the code related to invoice refunds.

Does DLL support BitPay Invoice refunds? probably I'm missing something, newbie in the Blockchain world...

BCH update?

At this point new fields to support the upcoming BCH acceptance, such as transactionCurrency aren't implemented yet.

Will the client be updated soon?

Error : Unauthorized sin

Hello I am implementing bitpay api using c# sdk
I am doing this according to
http://help.bitpay.com/businesses-and-organizations/implementation-and-development/how-do-i-configure-and-use-the-bitpay-c-client-library
but unfortunately I am not achieving this.
I stuck at
BitPay bitpay = new BitPay();
every time .
I also tried
ECKey key = KeyUtils.createEcKey();
this.bitpay = new BitPay(key);
but key generates successfully but again I stuck at
this.bitpay = new BitPay(key);
Every time I am getting this message from bitpay server.
{"error":"Unauthorized sin"}
Any one have idea about it?

And I am not seeing my public key on dashboard. Any one know why public key is not showing.

Thanks

BitCoinSharp dependency?

When installing BitPay C# package with NuGet and after trying to create a key: "ECKey key = KeyUtils.createEcKey();"

It asks for BitCoinSharp Version 0.2.199.60 dependency, but this version is not available on NuGet. Where can we get this version of BitCoinSharp?

GetInvoices() interval

I tried the following, but did not find the invoices I was expecting.

            var start = DateTime.Now.AddMinutes(-20);
            var finish = DateTime.Now.AddMinutes(20);

            var bitpayInvoicesToProcess = await _bitpay.GetInvoices(start, finish);

Then, I looked into GetInvoices() https://github.com/bitpay/csharp-bitpay-client/blob/master/BitPay/BitPay.cs:255 we can see that GetInvoices() allows input start and finish to be expressed as a DateTime objects, however this method converts those to a date value ("yyyy-MM-dd") - and ignores hours/minutes. Also I don't think timezone difference are being properly accounted using this approach. A UTC conversion might be needed.

Newtonsoft.Json dependency load failed

I have an error on the very start of using BitPay.Net Setup utility

An error occurred while loading the configuration.
Error Details: Nie można załadować pliku lub zestawu 'Newtonsoft.Json, Version=
12.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed' lub jednej z jego za
leżności. Zlokalizowana definicja manifestu zestawu nie odpowiada odwołaniu do z
estawu. (Wyjątek od HRESULT: 0x80131040)

Does not work with .NET Core

Is this library suppose to be usable?

  1. Created new console app
  2. Installed BitPay SDK from nuget.
class Program
{
    static void Main(string[] args)
    {
        var bp = new BitPay();
        Console.ReadLine();
    }
}
  1. Run program.

Result:

System.IO.FileNotFoundException: 'Could not load file or assembly 'BitCoinSharp, Version=0.2.199.60, Culture=neutral, PublicKeyToken=null'. The system cannot find the file specified.'

Doesn't seem to work at all....

Send bitcoins through API

Is it possible to send bitcoins to any address using API?

I want to integrate BitPay to my Asp.Net MVC website and want to let users receive bitcoins, send bitcoins, check their balance, etc.

From reading the intro, I couldn't find any way to send bitcoins to others. Is there a way? Does the API (even the original API) support this?

test code

Why to put catch clause in tests? It only hides exception details

Token getting disabled frequently

Hello,
I am integrating Bitpay as a payment gateway for our company to accept in Bitcoin.
But the issue I am facing (in development) is, Whenever I generate a Invoive, the token gets disabled, and the next time I make any request to Bitpay server , I get regular "Info: Pair this client with your merchant account using the pairing code:****".

Can you please guide me as to what I am doing wrong ?

Fix dependency on old version of BouncyCastle

Latest version of BouncyCastle is 1.8.3.
This current library depends on v1.7.4, which is years old.

This automatically removes the dependency on BitcoinSharp (referenced by older versions of BouncyCastle), as BitcoinSharp is no longer maintained.

BitcoinSharp is used for is signing requests, which could be done with any crypto library.

Could not load file or assembly 'Newtonsoft.Json, Version=12.0.0.0

Hi Team,

I tried to execute BitPay.Net Setup but I got below error:

An error occurred while loading the configuration.
Error Details: Could not load file or assembly 'Newtonsoft.Json, Version=12.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)

Please direct me to fix this issue.

My ultimate target is to link the bitpay java sdk with my bitpay merchan account. So I am folowing below tutorial. Is that the vay to link the sdk and merchant account.

https://github.com/bitpay/java-bitpay-client/blob/master/GUIDE.md

Best regards
Sirkumara

Removed dll dependency

Can we replace dll dependency by install appropriate nuget packages? there is an issue with BitcoinSharp - the version used in bitpay client is not available officially via nuget server. Also is it possible to remove BitcoinSharp dependency since it was updated last time in 2011

Bitpay Client ignores ApiUrl from config file and use constant values always for both Test and Prod.

Right now it does not matter if you specify ApiUrl in config file. Client will always use
public const string TestUrl = "https://test.bitpay.com/";
public const string ProdUrl = "https://bitpay.com/";

In previous versions config values were supported.

Changes was done in commit:

Revision: a85c0d1
Date: 7/22/2019 4:42:44 PM
Message:
V3 architecture (#54)

How it was: _baseUrl = _configuration.GetSection("BitPayConfiguration:EnvConfig:"+ _env +":ApiUrl").Value;
How it is now: _baseUrl = _env == Env.Test ? Env.TestUrl : Env.ProdUrl;

Nuget Update ??

Will the Nuget package be updated ?
We are working on a Bitcoin application right now, but the nuget library was update the last time 2 years ago, while this repository was updated recently ?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.