Switch to new payment method endpoints

This commit is contained in:
2024-06-17 18:21:01 -04:00
parent 5f89bdcb1a
commit 59889d6910
7 changed files with 198 additions and 169 deletions

View File

@ -18,7 +18,7 @@ along with Linode Manager Classic. If not, see <https://www.gnu.org/licenses/>.
<html lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>LMC - Account // Update Credit Card</title>
<title>LMC - Account // Add Credit Card</title>
<link rel="shortcut icon" type="image/x-icon" href="/favicon.ico" />
<link rel="stylesheet" type="text/css" href="creditcard.css" />
<script src="creditcard.js" type="module"></script>
@ -27,35 +27,17 @@ along with Linode Manager Classic. If not, see <https://www.gnu.org/licenses/>.
<!--#include virtual="/include/header.html"-->
<!--#include virtual="/include/account_subnav.html"-->
<div id="main-content" class="wrapper">
<div id="top-links"><a href="/account">Account</a> » <span class="top-links-title">Update Credit Card</span></div>
<div id="top-links"><a href="/account">Account</a> » <span class="top-links-title">Add Credit Card</span></div>
<div id="creditcard">
<table class="lmc-table">
<thead>
<tr>
<td colspan="3">Update Credit Card</td>
</tr>
<tr>
<td colspan="3">Current Card</td>
<td colspan="3">Add Credit Card</td>
</tr>
</thead>
<tbody>
<tr class="lmc-tr3">
<td>Current Card</td>
<td>xxxxxxxxxxxx<span id="cc-current"></span> Exp: <span id="expiry-current"></span></td>
<td></td>
</tr>
</tbody>
<tbody class="lmc-tbody-head">
<tr class="noshow">
<td colspan="3"></td>
</tr>
<tr>
<td colspan="3">Update Card</td>
</tr>
</tbody>
<tbody>
<tr class="lmc-tr3">
<td>New Card Number</td>
<td>Card Number</td>
<td><input id="cc-new" type="text" /></td>
<td class="info">Linode accepts Visa, MasterCard, American Express, and Discover</td>
</tr>
@ -85,9 +67,14 @@ along with Linode Manager Classic. If not, see <https://www.gnu.org/licenses/>.
</td>
<td></td>
</tr>
<tr class="lmc-tr3">
<td>Make Default</td>
<td><input id="default" type="checkbox" /></td>
<td class="info">This card will become the new default payment method</td>
</tr>
<tr class="lmc-tr3">
<td></td>
<td colspan="2"><button id="update-button" type="button">Update Credit Card</button>
<td colspan="2"><button id="update-button" type="button">Add Credit Card</button>
</tr>
</tbody>
</table>