From 386fb87a2653c6fb8fd77ec983fd243dba3bc660 Mon Sep 17 00:00:00 2001
From: Jean-Paul Calderone <exarkun@twistedmatrix.com>
Date: Wed, 20 Nov 2019 15:26:38 -0500
Subject: [PATCH] Read the integer value out of the amount string

---
 src/PaymentServer/Processors/Stripe.hs | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/PaymentServer/Processors/Stripe.hs b/src/PaymentServer/Processors/Stripe.hs
index 8caef6e..57137ed 100644
--- a/src/PaymentServer/Processors/Stripe.hs
+++ b/src/PaymentServer/Processors/Stripe.hs
@@ -143,7 +143,7 @@ instance FromJSON Charges where
   parseJSON (Object v) = Charges <$>
                          v .: "token" <*>
                          v .: "voucher" <*>
-                         v .: "amount" <*>
+                         (read <$> v .: "amount") <*>
                          v .: "currency"
   parseJSON _ = mzero
 
-- 
GitLab