diff options
author | Camil Staps | 2016-08-01 16:13:51 +0200 |
---|---|---|
committer | Camil Staps | 2016-08-01 16:13:51 +0200 |
commit | c37d4ff7a9b51c9ddcd6e952199214d529a780fe (patch) | |
tree | 57bf11bdd19441bcbfe509a3be82e0baf1bf32fc | |
parent | Array shorthands (diff) |
Better Braintree error message
-rw-r--r-- | include/pay.php | 2 |
1 files changed, 1 insertions, 1 deletions
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 '<div class="form-group alert alert-danger">'; - echo '<h4>Your transaction could not be completed:</h4>'; + echo "<h4>Your transaction could not be completed: {$trans->message}</h4>"; foreach ($trans->errors->deepAll() as $error) { echo "{$error->attribute}: {$error->code} {$error->message}<br/>"; } |