Commit Graph

165 Commits

Author SHA1 Message Date
Nicolas Dorier
0f0c73fc75 Merge branch 'master' into empty-btcpay-server-url 2019-02-17 13:12:11 +09:00
kakaska
3087e0cb7c Fix tests in ClientTest 2019-02-14 20:02:37 +01:00
kakaska
6dda744064 Fix tests in ItemTest 2019-02-14 19:08:58 +01:00
kakaska
883381aca0 Fix testProcessAndValidate() test in ConfigurationTest 2019-02-14 18:37:50 +01:00
kakaska
58b99f9c4e Fix testSendRequestWithException() test in CurlAdapterTest 2019-02-14 18:34:05 +01:00
kakaska
95f351271b Fix failed testConfigAbleToPersistAndLoadKeys() test in BitpayTest 2019-02-14 18:29:48 +01:00
kakaska
46b4b18eb5 Throw BitpayException when BTCPAY server url is empty 2019-02-14 17:52:17 +01:00
kakaska
4aeedbd176 Clean up code and add testSetUri() in RequestTest 2019-02-12 21:44:22 +01:00
kakaska
dc4f186bcc Fix mock configuration in ClientTest 2019-02-12 21:28:20 +01:00
kakaska
ec1d1585e1 Remove 'network' parameter from BitpayTest 2019-02-12 21:14:19 +01:00
kakaska
f3563d4675 Remove Network specific unit tests 2019-02-12 20:52:28 +01:00
Pieter Poorthuis
b88a7f6978 Fixed tests, fixed default timezone issues 2018-03-28 12:27:19 +02:00
Pieter Poorthuis
34e24646a5 Removed mcrypt from composer, fixed datetime invoice setting issue 2017-11-28 11:12:45 +01:00
Selim Salihovic
925cf6b5a8 Use the proper default for fullNotifications 2017-05-23 20:59:49 +02:00
Selim Salihovic
71b8805de6 Add missing methods to mock 2017-05-23 20:50:10 +02:00
Chris Kleeschulte
7dd352355f EncryptedFilesystemStorage Passwords
- if it is a valid string, then it should now be a valid password for encrypting key files.
2016-06-10 12:17:22 -04:00
Chris Kleeschulte
42e7af0e36 removed check for gmp; gmp is no longer referenced here. 2016-06-07 15:28:38 -04:00
raul782
0d9eec8757 Removed gmp dependency to avoid segmentation faults on MacOSX 2016-06-03 10:15:53 -05:00
Chris Kleeschulte
0e144004c6 Examples/Tutorial, price checking
- Upgraded examples to show how to interact with the config.yml file and encrypted file storage
- checkPriceAndCurrency will now allow prices that do not have fractions of main units (e.g. $1000)
2016-03-11 16:22:44 -05:00
Paul Daigle/Alex Leitner
19e0eb0061 delete obsolete test 2015-07-31 11:30:51 -04:00
ionux
ccf2fa1cb9 Merge branch 'master' into gh152
fix merge conflicts
2015-07-31 11:05:41 -04:00
Alex Leitner
44cdb69a08 Client::getInvoice now works with merchant and public facades 2015-06-22 15:46:04 -04:00
Sam Bohler
575d17a186 Fixes #152 - Item::setPrice() now accepts all en_US numeric strings
Changed Item::setPrice's $price parameter to type mixed,
accepting floats, integers, and en_US numeric strings.
Changed Item::price to float
2015-06-22 14:13:13 -04:00
paul
397db094c2 This introduces new steps to check the format of price
check format of price to insure that it "looks like" a float
coerce price to a float
check precision of price against currency
2015-06-17 14:56:20 -04:00
Sam Bohler
05e0273c17 Fixes #148: Client now sets invoice tokens upon creation and retrieval 2015-06-04 07:21:34 -04:00
Sam Bohler
9027ce67e4 Fixes #144: BitPay API errors are now passthrough 2015-05-20 11:53:51 -04:00
Sam Bohler
df7bf05c94 Check Requirements Utility Method
Many plugins and other projects that use this library have to determine
whether the requirements for the library have been met.  This method
lists all requirements with boolean true if met, or a message string if not
so that informative error messages can be generated.
2015-04-13 10:11:34 -04:00
Sam Bohler
02600b0ec6 Fixes #143 BCMath Scale is now being set
By setting bcscale(0) at the BCMath engine's construct, it only deals with integers.
It should now only output numeric strings it can receive as input.
2015-03-02 14:48:39 -05:00
Sam Bohler
114b5ea147 Token Update
Updated \Bitpay\Token to include pairingCode and pairingExpiration properties
Fixed \Bitpay\Client\Client to set tokens correctly:
    \Bitpay\Token::createdAt is correctly set as a DateTime object

Tests written for all changes
2015-02-03 18:05:58 -05:00
Rich Morgan
66d48768ce Merge pull request #125 from afk11/ImproveGetPayout
Improve get payout
2015-01-28 10:27:43 -05:00
Sam Bohler
4742ad18bf Fixed test names, dependencies, and removed unused test 2015-01-13 14:04:07 -05:00
Sam Bohler
b59d2ae931 Fixes #134, Corrected behavior of Math::mod 2015-01-13 14:02:52 -05:00
Alexander Leitner
d80a244f76 Clean up 2014-12-19 15:43:16 -05:00
Alexander Leitner
101f078497 unit tests working 2014-12-18 16:03:47 -05:00
Alexander Leitner
7270d1fa61 Updated integration tests to create invoices 2014-12-18 15:27:02 -05:00
Alexander Leitner
fce2981a97 Port and Curl settings can be changed, along with URI for working with local instance of bitpay 2014-12-03 18:10:50 -05:00
Alexander Leitner
6949086e45 updated CurlAdapter and tests 2014-12-02 13:44:00 -05:00
Alexander Leitner
6f71a582d9 Curl options can now be set in the adapter class 2014-12-01 13:32:00 -05:00
BitWasp
591f9c457a Add tests 2014-11-27 04:41:58 +00:00
BitWasp
6ccb9f48d3 Add test for new functions, getBtcAmount and setBtcAmount 2014-11-27 04:41:21 +00:00
Sam Bohler
2a59e600f3 Removed unnecessary echo from test 2014-11-26 15:42:23 -05:00
Sam Bohler
413f139a37 Optimized input parsing and wrote tests as well 2014-11-26 15:35:45 -05:00
Sam Bohler
d9a8266d7c Fixed Private Key Test generate stalling, and suggest GMP in composer.json 2014-11-26 13:51:19 -05:00
Sam Bohler
d05146d8f5 Fixes #72 - Restructured arb int math and enabled BCMath as an engine 2014-11-26 13:09:05 -05:00
Sam Bohler
6ec5bcb787 Revert "GMP and BC Math signature code generates different signatures" 2014-11-25 08:09:32 -05:00
Alexander Leitner
32c9af90b7 Revert "Merge if you like math!" 2014-11-24 17:53:57 -05:00
Joshua Estes
557064ae85 Updated private key test to test gmp and bc math signatures, test fails when it tries to compare them 2014-11-24 14:48:31 -05:00
Joshua Estes
307244139e Merge pull request #96 from afk11/payouts
Looks good, thank you
2014-11-24 09:39:05 -05:00
Alexander Leitner
a49d5e9e42 Updated tests and Error.php 2014-11-21 13:50:33 -05:00
Alexander Leitner
3f515065e2 removed --verbose from travis.yml, updated testing documentation to talk about testMaths, Error.php causes build to fail 2014-11-21 13:31:55 -05:00