From 57b0a212e0386a61d373a1eaefc23cb56a3f4f1b Mon Sep 17 00:00:00 2001 From: Craig Paul Date: Tue, 25 Oct 2016 20:08:02 -0600 Subject: [PATCH] Changes amount cast to string --- src/Receipt.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Receipt.php b/src/Receipt.php index 60143db..8ec6fe3 100644 --- a/src/Receipt.php +++ b/src/Receipt.php @@ -19,7 +19,7 @@ class Receipt public function __construct($data) { $this->data = $this->prepare($data, [ - ['property' => 'amount', 'key' => 'TransAmount', 'cast' => 'float'], + ['property' => 'amount', 'key' => 'TransAmount', 'cast' => 'string'], ['property' => 'authorization', 'key' => 'AuthCode', 'cast' => 'string'], ['property' => 'avs_result', 'key' => 'AvsResultCode', 'cast' => 'string'], ['property' => 'card', 'key' => 'CardType', 'cast' => 'string'],