bitpay / csharp-bitpay-client Goto Github PK
View Code? Open in Web Editor NEWC# implementation for the BitPay Cryptographically Secure RESTful API
License: MIT License
C# implementation for the BitPay Cryptographically Secure RESTful API
License: MIT License
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?
Hi Ionux,
Is Sandbox available for BitPay?
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"}
See my comment in issue #20
I followed the steps and solutions provided, but still getting the same errors.
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...
At this point new fields to support the upcoming BCH acceptance, such as transactionCurrency aren't implemented yet.
Will the client be updated soon?
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
I make a token and post to "https://bitpay.com/tokens"
I get a pairingCode,but when I use this pairingCode to post to "https://bitpay.com/tokens" again,it Error: 500.how to fix it?
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?
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.
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)
Is this library suppose to be usable?
class Program
{
static void Main(string[] args)
{
var bp = new BitPay();
Console.ReadLine();
}
}
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....
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?
Why to put catch clause in tests? It only hides exception details
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 ?
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.
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
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
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;
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 ?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.