From 8b3cd92b6b42f74f0abadfc589fcbdeb22fa07e3 Mon Sep 17 00:00:00 2001 From: Rohit Paul Kuruvilla Date: Thu, 11 Jun 2015 15:30:14 +0530 Subject: [PATCH] Stop charging failing cards, fixes #3531 --- sql/payday.sql | 1 + 1 file changed, 1 insertion(+) diff --git a/sql/payday.sql b/sql/payday.sql index 1f7b9c8bc9..08b167844a 100644 --- a/sql/payday.sql +++ b/sql/payday.sql @@ -13,6 +13,7 @@ CREATE TABLE payday_participants AS FROM exchange_routes r WHERE r.participant = p.id AND network = 'braintree-cc' + AND error = '' ) > 0 AS has_credit_card , braintree_customer_id FROM participants p