aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCamil Staps2016-08-01 16:13:51 +0200
committerCamil Staps2016-08-01 16:13:51 +0200
commitc37d4ff7a9b51c9ddcd6e952199214d529a780fe (patch)
tree57bf11bdd19441bcbfe509a3be82e0baf1bf32fc
parentArray shorthands (diff)
Better Braintree error message
-rw-r--r--include/pay.php2
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/>";
}