From c37d4ff7a9b51c9ddcd6e952199214d529a780fe Mon Sep 17 00:00:00 2001 From: Camil Staps Date: Mon, 1 Aug 2016 16:13:51 +0200 Subject: Better Braintree error message --- include/pay.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/pay.php b/include/pay.php index a30c67a..e44c5cf 100644 --- a/include/pay.php +++ b/include/pay.php @@ -60,7 +60,7 @@ require('./header.php'); if (!$trans->success) { echo '
'; - echo '

Your transaction could not be completed:

'; + echo "

Your transaction could not be completed: {$trans->message}

"; foreach ($trans->errors->deepAll() as $error) { echo "{$error->attribute}: {$error->code} {$error->message}
"; } -- cgit v1.2.3