REDROOM
PHP 7.4.33
Path:
Logout
Edit File
Size: 6.85 KB
Close
/home/godevadmin/www/admin/braintree/final/transaction.php
Text
Base64
<html> <?php require_once("../includes/head.php"); ?> <body> <?php require_once("../includes/braintree_init.php"); require_once("../includes/header.php"); if (isset($_GET["id"])) { $transaction = Braintree\Transaction::find($_GET["id"]); $transactionSuccessStatuses = [ Braintree\Transaction::AUTHORIZED, Braintree\Transaction::AUTHORIZING, Braintree\Transaction::SETTLED, Braintree\Transaction::SETTLING, Braintree\Transaction::SETTLEMENT_CONFIRMED, Braintree\Transaction::SETTLEMENT_PENDING, Braintree\Transaction::SUBMITTED_FOR_SETTLEMENT ]; if (in_array($transaction->status, $transactionSuccessStatuses)) { $header = "Sweet Success!"; $icon = "success"; $message = "Your test transaction has been successfully processed. See the Braintree API response and try again."; } else { $header = "Transaction Failed"; $icon = "fail"; $message = "Your test transaction has a status of " . $transaction->status . ". See the Braintree API response and try again."; } } ?> <div class="wrapper"> <div class="response container"> <div class="content"> <div class="icon"> <img src="/images/<?php echo($icon)?>.svg" alt=""> </div> <h1><?php echo($header)?></h1> <section> <p><?php echo($message)?></p> </section> <section> <a class="button primary back" href="/index.php"> <span>Test Another Transaction</span> </a> </section> </div> </div> </div> <aside class="drawer dark"> <header> <div class="content compact"> <a href="https://developers.braintreepayments.com" class="braintree" target="_blank">Braintree</a> <h3>API Response</h3> </div> </header> <article class="content compact"> <section> <h5>Transaction</h5> <table cellpadding="0" cellspacing="0"> <tbody> <tr> <td>id</td> <td><?php echo($transaction->id)?></td> </tr> <tr> <td>type</td> <td><?php echo($transaction->type)?></td> </tr> <tr> <td>amount</td> <td><?php echo($transaction->amount)?></td> </tr> <tr> <td>status</td> <td><?php echo($transaction->status)?></td> </tr> <tr> <td>created_at</td> <td><?php echo($transaction->createdAt->format('Y-m-d H:i:s'))?></td> </tr> <tr> <td>updated_at</td> <td><?php echo($transaction->updatedAt->format('Y-m-d H:i:s'))?></td> </tr> </tbody> </table> </section> <section> <h5>Payment</h5> <table cellpadding="0" cellspacing="0"> <tbody> <tr> <td>token</td> <td><?php echo($transaction->creditCardDetails->token)?></td> </tr> <tr> <td>bin</td> <td><?php echo($transaction->creditCardDetails->bin)?></td> </tr> <tr> <td>last_4</td> <td><?php echo($transaction->creditCardDetails->last4)?></td> </tr> <tr> <td>card_type</td> <td><?php echo($transaction->creditCardDetails->cardType)?></td> </tr> <tr> <td>expiration_date</td> <td><?php echo($transaction->creditCardDetails->expirationDate)?></td> </tr> <tr> <td>cardholder_name</td> <td><?php echo($transaction->creditCardDetails->cardholderName)?></td> </tr> <tr> <td>customer_location</td> <td><?php echo($transaction->creditCardDetails->customerLocation)?></td> </tr> </tbody> </table> </section> <?php if (!is_null($transaction->customerDetails->id)) : ?> <section> <h5>Customer Details</h5> <table cellpadding="0" cellspacing="0"> <tbody> <tr> <td>id</td> <td><?php echo($transaction->customerDetails->id)?></td> </tr> <tr> <td>first_name</td> <td><?php echo($transaction->customerDetails->firstName)?></td> </tr> <tr> <td>last_name</td> <td><?php echo($transaction->customerDetails->lastName)?></td> </tr> <tr> <td>email</td> <td><?php echo($transaction->customerDetails->email)?></td> </tr> <tr> <td>company</td> <td><?php echo($transaction->customerDetails->company)?></td> </tr> <tr> <td>website</td> <td><?php echo($transaction->customerDetails->website)?></td> </tr> <tr> <td>phone</td> <td><?php echo($transaction->customerDetails->phone)?></td> </tr> <tr> <td>fax</td> <td><?php echo($transaction->customerDetails->fax)?></td> </tr> </tbody> </table> </section>i <?php endif; ?> <section> <p class="center small">Integrate with the Braintree SDK for a secure and seamless checkout</p> </section> <section> <a class="button secondary full" href="https://developers.braintreepayments.com/guides/drop-in" target="_blank"> <span>See the Docs</span> </a> </section> </article> </aside> </body> </html>
Save
Close
Exit & Reset
Text mode: syntax highlighting auto-detects file type.
Directory Contents
Dirs: 7 × Files: 11
Delete Selected
Select All
Select None
Sort:
Name
Size
Modified
Enable drag-to-move
Name
Size
Perms
Modified
Actions
braintree
DIR
-
drwxrwxr-x
2023-11-07 19:59:44
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
braintree2
DIR
-
drwxrwxr-x
2023-11-07 19:59:44
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
braintree_php-master
DIR
-
drwxrwxr-x
2023-11-07 19:59:46
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
css
DIR
-
drwxrwxr-x
2023-11-07 19:59:46
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
fonts
DIR
-
drwxrwxr-x
2023-11-07 19:59:46
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
images
DIR
-
drwxrwxr-x
2023-11-07 19:59:46
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
javascript
DIR
-
drwxrwxr-x
2023-11-07 19:59:46
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
brain2.php
4.55 KB
lrwxrwxr-x
2023-11-07 19:59:44
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
checkout.php
737 B
lrwxrwxr-x
2023-11-07 19:59:46
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
curl2.php
556 B
lrwxrwxr-x
2023-11-07 19:59:46
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
error_log
79.75 KB
lrwxrwxr-x
2023-11-07 19:59:46
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
functions.php
12.46 KB
lrwxrwxr-x
2023-11-07 19:59:46
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
index.php
900 B
lrwxrwxr-x
2023-11-07 19:59:46
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
index_21_7_2017.php
2.62 KB
lrwxrwxr-x
2023-11-07 19:59:46
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
index_22_7.php
4.08 KB
lrwxrwxr-x
2023-11-07 19:59:46
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
result.php
912 B
lrwxrwxr-x
2023-11-07 19:59:46
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
rss.xml
252 B
lrwxrwxr-x
2023-11-07 19:59:46
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
transaction.php
6.85 KB
lrwxrwxr-x
2023-11-07 19:59:46
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
Zip Selected
If ZipArchive is unavailable, a
.tar
will be created (no compression).