www/templates/account/plans/plan-summary-upgrade.php
<div class="my-account-page page_content">
    <?php include_once __DIR__ . '/includes/breadcrumbs.php'; ?>
    <?php include_once __DIR__ . '/includes/subhed.php'; ?>
    <!-- main form -->
    <form id="wpt-account-upgrade" method="post" action="/account">
        <!-- payment -->
        <div class="box card-section">
            <h3>Payment Method</h3>
            <div class="radiobutton-tabs__container">
                <div class="card payment-info radiobutton-tabs__tab-content" data-modal="payment-info-modal">
                    <div class="card-section user-info">
                        <div class="cc-type image">
                            <img src="<?= $cc_image_url ?>" alt="card-type" width="80px" height="54px" />
                        </div>
                        <div class="cc-details">
                            <div class="cc-number"><?= $masked_cc; ?></div>
                            <div class="cc-expiration">Expires: <?= $cc_expiration; ?></div>
                        </div>
                    </div>

                </div>
            </div>
            <!-- .radiobutton-tab-container__notcss -->

            <input type="hidden" name="plan" value="<?= $plan->getId() ?>" />
            <input type="hidden" name="runs" value="<?= $plan->getRuns() ?>" />
            <input type="hidden" name="is_upgrade" value="<?= $isUpgrade ?>" />
            <input type='hidden' name='type' value='upgrade-plan-2' />
            <input type="hidden" name="subscription_id" value="<?= $wptCustomer->getSubscriptionId() ?>" />
            <input type="hidden" name="csrf_token" value="<?= $csrf_token; ?>" />
        </div>

        <div class="box card-section">
            <h2>Selected Plan</h2>
            <div class="card-section-subhed">
                Pro <?= $plan->getBillingFrequency() ?>
            </div>
            <ul class="plan-summary-list" id="plan-summary">
                <li><strong>Runs per month:</strong> <?= $plan->getRuns() ?></li>
                <?php if ($plan->getBillingFrequency() == 'Monthly') : ?>
                    <li><strong>Monthly Price:</strong> $<?= $plan->getMonthlyPrice() ?></li>
                <?php else : ?>
                    <li><strong>Yearly Price:</strong> $<?= $plan->getAnnualPrice() ?></li>
                <?php endif; ?>
                <li><strong>Tax:</strong> $<?= $tax ?></li>
                <?php if ($isUpgrade) : ?>
                    <li class="total__due-today">
                        <strong>Due today:</strong> $<?= $total ?>
                    </li>
                <?php else : ?>
                    <li class="total__due-today">
                        <strong>Due today:</strong> $0.00
                        <br>
                        <strong>Due at the next billing date <?= $renewaldate ? '(' . $renewaldate->format('m/d/Y') . ')' : ''; ?> :</strong> $<?= $total ?>
                    </li>
                <?php endif; ?>
            </ul>
            <?php if (!$isUpgrade) : ?>
                <span class="info-notice"> Plan change will not take effect until the end of current subscription</span>
            <?php endif; ?>
        </div>

        <div class="add-subscription-button-wrapper">
            <button type="submit" class="pill-button yellow">Upgrade Plan</button>
        </div>
    </form>
</div>

<?php include_once __DIR__ . '../includes/modals/payment-info.php' ?>