403Webshell
Server IP : 173.209.174.21  /  Your IP : 216.73.216.89
Web Server : Apache/2.4.58 (Ubuntu)
System : Linux wcfs-server 6.8.0-124-generic #124-Ubuntu SMP PREEMPT_DYNAMIC Tue May 26 13:00:45 UTC 2026 x86_64
User : nodor ( 1000)
PHP Version : 8.3.6
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : OFF
Directory :  /var/www/thelittlebigshow/vendor-reg/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/thelittlebigshow/vendor-reg/square-payment.php
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Vendor Payment</title>
    <script type="text/javascript" src="https://js.squareup.com/v2/paymentform">
    </script>
    <style>
        /* Basic Styling for Payment Form */
        body {
            font-family: Arial, sans-serif;
            background-color: #F7F7F7;
            color: #333;
            padding: 20px;
        }
        .container {
            width: 50%;
            margin: auto;
            background-color: #fff;
            padding: 20px;
            border-radius: 8px;
            box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
        }
        h2 {
            color: #1E90FF;
            text-align: center;
        }
        .sq-form {
            margin: 20px 0;
        }
        .sq-input {
            padding: 10px;
            width: 100%;
            margin: 10px 0;
            border-radius: 4px;
            border: 1px solid #ccc;
        }
        .submit-btn {
            background-color: #1E90FF;
            color: white;
            padding: 12px 20px;
            font-size: 16px;
            border: none;
            border-radius: 4px;
            cursor: pointer;
            width: 100%;
        }
        .submit-btn:hover {
            background-color: #1c86ee;
        }
    </style>
</head>
<body>

<div class="container">
    <h2>Vendor Payment</h2>
    <form id="payment-form" action="process_payment.php" method="POST">
        <div class="sq-form">
            <label for="amount">Amount to Pay ($):</label>
            <input type="number" id="amount" name="amount" class="sq-input" required />
        </div>
        <div id="sq-card-container"></div>

        <button type="submit" id="payment-button" class="submit-btn">Pay Now</button>
    </form>
</div>

<script type="text/javascript">
    var paymentForm = new SqPaymentForm({
        applicationId: "sandbox-sq0idb-ecqGssjcE2VFkDH_7u7QXg", // Your Square Application ID
        locationId: "8W4P84N8Z3BNF", // Your Square Location ID
        inputClass: 'sq-input',
        cardNumber: {
            elementId: 'sq-card-number',
            placeholder: 'Card Number'
        },
        cvv: {
            elementId: 'sq-cvv',
            placeholder: 'CVV'
        },
        expirationDate: {
            elementId: 'sq-expiration-date',
            placeholder: 'MM/YY'
        },
        postalCode: {
            elementId: 'sq-postal-code',
            placeholder: 'Postal Code'
        },
        callbacks: {
            paymentFormLoaded: function() {
                console.log("Payment form loaded");
            },
            cardNonceResponseReceived: function(errors, nonce, cardData) {
                if (errors) {
                    alert("There were errors with the payment form.");
                    return;
                }
                document.getElementById('payment-form').nonce.value = nonce;
                document.getElementById('payment-form').submit();
            }
        }
    });

    paymentForm.build();
</script>

</body>
</html>

Youez - 2016 - github.com/yon3zu
LinuXploit