HEX
Server: nginx/1.28.1
System: Linux 10-41-63-61 6.8.0-31-generic #31-Ubuntu SMP PREEMPT_DYNAMIC Sat Apr 20 00:40:06 UTC 2024 x86_64
User: www (1001)
PHP: 7.4.33
Disabled: passthru,exec,system,putenv,chroot,chgrp,chown,shell_exec,popen,proc_open,pcntl_exec,ini_alter,ini_restore,dl,openlog,syslog,readlink,symlink,popepassthru,pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,imap_open,apache_setenv
Upload Files
File: /www/wwwroot//ssss.umchkw.com/public/index.php
<?php
require '../vendor/autoload.php';

$dotenv = Dotenv\Dotenv::createImmutable(__DIR__ . '/..');
$dotenv->load();

$basicPrice = $_ENV['BASIC_PRICE_ID'];
if (!$basicPrice) {
  http_response_code(500);
  echo "You must set a Price ID in the .env file. Please see the README";
  exit;
}

$proPrice = $_ENV['PRO_PRICE_ID'];
if (!$proPrice) {
  http_response_code(500);
  echo "You must set a Price ID in the .env file. Please see the README";
  exit;
}
?>
<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="utf-8" />
    <title>Stripe Checkout Sample</title>
    <meta name="description" content="A demo of Stripe Payment Intents" />

    <link rel="icon" href="favicon.ico" type="image/x-icon" />
    <link rel="stylesheet" href="css/normalize.css" />
    <link rel="stylesheet" href="css/global.css" />
    <!-- Load Stripe.js on your website. -->
    <script src="https://js.stripe.com/v3/"></script>
  </head>

  <body>
    <div class="sr-root">
      <div class="sr-main" style="display: flex;">
        <div class="sr-container">
          <section class="container basic-photo">
            <div>
              <h1>Basic subscription</h1>
              <div class="pasha-image">
                <img
                  src="https://picsum.photos/280/320?random=4"
                  width="140"
                  height="160"
                />
              </div>
            </div>
            <form action="/create-checkout-session.php" method="POST">
              <input type="hidden" name="priceId" value="<?= $basicPrice ?>" />
              <button>$5.00</button>
            </form>
          </section>
          <section class="container pro-photo">
            <div>
              <h1>Pro subscription</h1>
              <h4>3 photos per week</h4>
              <div class="pasha-image-stack">
                <img
                  src="https://picsum.photos/280/320?random=1"
                  width="105"
                  height="120"
                  alt="Sample Pasha image 1"
                />
                <img
                  src="https://picsum.photos/280/320?random=2"
                  width="105"
                  height="120"
                  alt="Sample Pasha image 2"
                />
                <img
                  src="https://picsum.photos/280/320?random=3"
                  width="105"
                  height="120"
                  alt="Sample Pasha image 3"
                />
              </div>
            </div>
            <form action="/create-checkout-session.php" method="POST">
              <input type="hidden" name="priceId" value="<?= $proPrice ?>" />
              <button>$12.00</button>
            </form>
          </section>
        </div>
        <div id="error-message"></div>
      </div>
    </div>
  </body>
</html>