Commit Graph

12 Commits

Author SHA1 Message Date
Chris Kleeschulte
ae7f1392b5 Refund test improvements / Signature not required for rate estimates 2016-04-04 14:48:20 -04:00
Chris Kleeschulte
3bc1178a78 Creating BitPay client with URI of key
- Added constructors for passing the URI of your private key. We prefer to have users of this library pass in a URI for their key file. That way, this api isn't just writing new key files to the current working directory. If the URI does not have a key already, one will be created there (if writeable). It will be the user's responsibility to safeguard their private keys.
- A bit of code cleanup in terms of spelling and removal of warnings, etc.
2016-04-04 14:38:18 -04:00
Chris Kleeschulte
c5ba2e50c5 Conversion to Maven, Tests adjusted to help developers
- As per mrosseel's pom file, conversion of all dependencies to use maven2. This will ease the pain of managing a bunch of jar files in lib
- Repaired some deprecation warnings in bitcoinj dependency around Sha256 creation and ECKey construction.
- Adjusted test harness to create tokens for pos/merchant facade, this is done once the first time someone runs the tests. The test runner just has to pair with their test account. The tester is does not have cascading test failures that might confuses as to what he/she needs to do.
- Added some notes about how to do the refund test.
2016-04-04 14:38:05 -04:00
Mike Rosseel
aea9ea062d added maven pom file, moved files into maven dir structure, small changes due to bitcoinj 13 2016-04-04 14:37:34 -04:00
Jason Swenski
2243bfedd5 Forgot to add ? in the URL params. A proper solution would use URIBuilder
I'll contribute this in a later pull request
2016-04-04 14:35:57 -04:00
Jason Swenski
cebab00a02 Fixing the fact that getInvoice(id,PUBLIC_NO_TOKEN) was actually still signing the requests and therefore not actually using the public API. This doesn't work in some cases because the /invoice endpoint doesn't support some facades.
Also refactors some of the parameter building to off-the-shelf apache commons methods
2016-04-04 14:35:57 -04:00
Chris Kleeschulte
065a8f257e Creating BitPay client with URI of key
- Added constructors for passing the URI of your private key. We prefer to have users of this library pass in a URI for their key file. That way, this api isn't just writing new key files to the current working directory. If the URI does not have a key already, one will be created there (if writeable). It will be the user's responsibility to safeguard their private keys.
- A bit of code cleanup in terms of spelling and removal of warnings, etc.
2016-03-24 17:47:35 -04:00
Chris Kleeschulte
87bd21f32e Conversion to Maven, Tests adjusted to help developers
- As per mrosseel's pom file, conversion of all dependencies to use maven2. This will ease the pain of managing a bunch of jar files in lib
- Repaired some deprecation warnings in bitcoinj dependency around Sha256 creation and ECKey construction.
- Adjusted test harness to create tokens for pos/merchant facade, this is done once the first time someone runs the tests. The test runner just has to pair with their test account. The tester is does not have cascading test failures that might confuses as to what he/she needs to do.
- Added some notes about how to do the refund test.
2016-03-22 16:10:01 -04:00
Mike Rosseel
91342ec370 allow loading from classpath 2016-03-22 16:10:01 -04:00
Mike Rosseel
dc09023cfa load private key from classpath 2016-03-22 16:10:01 -04:00
Mike Rosseel
0e32df0f30 add test URL 2016-03-22 16:10:01 -04:00
Mike Rosseel
f316313d63 added maven pom file, moved files into maven dir structure, small changes due to bitcoinj 13 2016-03-22 16:10:01 -04:00