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

@ -32,62 +32,25 @@ along with Linode Manager Classic. If not, see <https://www.gnu.org/licenses/>.
<table class="lmc-table">
<thead>
<tr>
<td colspan="3">Make a Payment</td>
<td colspan="2">Make a Payment</td>
</tr>
</thead>
<tbody>
<tr class="lmc-tr3">
<td>Current Balance</td>
<td id="balance" class="balance-positive"></td>
<td></td>
</tr>
</tbody>
<tbody class="lmc-tbody-head">
<tr class="noshow">
<td colspan="3"></td>
</tr>
<tr>
<td colspan="3">Make a Payment - via Credit Card</td>
</tr>
</tbody>
<tbody>
<tr class="lmc-tr3">
<td>Current Card</td>
<td>xxxxxxxxxxxx<span id="cc-number"></span> Exp: <span id="cc-exp"></span></td>
<td class="info"><a href="/account/creditcard">(update credit card)</a></td>
</tr>
<tr class="lmc-tr3">
<td>Amount to Charge</td>
<td><input id="cc-amount" type="number" min="0" max="50000" step="0.01" value="0.00" /> <span class="info">(USD)</span></td>
<td></td>
<td><input id="cc-amount" type="number" min="5" max="2000" step="0.01" value="5.00" /> <span class="info">(USD)</span></td>
</tr>
<tr class="lmc-tr3">
<td>CVV</td>
<td><input id="cvv" type="text" size="8" /> <span class="info">(optional)</span></td>
<td></td>
<td>Payment Method</td>
<td><select id="method"></select></td>
</tr>
<tr class="lmc-tr3">
<td></td>
<td colspan="2"><button disabled id="cc-charge" type="button">Charge Credit Card</button></td>
</tr>
</tbody>
<tbody class="lmc-tbody-head">
<tr class="noshow">
<td colspan="3"></td>
</tr>
<tr>
<td colspan="3">Make a Payment - via PayPal</td>
</tr>
</tbody>
<tbody>
<tr class="lmc-tr3">
<td>Amount to Pay</td>
<td><input id="paypal-amount" type="number" min="0" max="10000" step="0.01" value="0.00" /> <span class="info">(USD)</span></td>
<td></td>
</tr>
<tr class="lmc-tr3">
<td></td>
<td colspan="2"><button disabled id="paypal-charge" type="button">Continue...</button></td>
<td><button disabled id="cc-charge" type="button">Make Payment</button></td>
</tr>
</tbody>
</table>