Payment Method Selector (billing/selectPaymentMethod.svelte)

console-getitforcomm · payments, svelte, payment, selector, billing, stripe

Dropdown UI for choosing a payment method, handling Stripe integration, tax ID display, and refreshing billing data after changes.

<!--
  Source: https://github.com/mperkins0155/console-getitforcomm | License: BSD-3-Clause | Copyright 2019 Appwrite (https://appwrite.io) and individual contributors
  Provided via justclaw.it.com; keep this notice with the code.
-->
<script lang="ts">
    import { Button, InputText } from '$lib/elements/forms';
    import { hasStripePublicKey, isCloud } from '$lib/system';
    import { onMount } from 'svelte';
    import PaymentModal from './paymentModal.svelte';
    import { capitalize } from '$lib/helpers/string';
    import { Alert, Icon, Layout, Selector, Card, Typography } from '@appwrite.io/pink-svelte';
    import { IconExclamationCircle, IconPlus } from '@appwrite.io/pink-icons-svelte';
    import InputSelect from '$lib/elements/forms/inputSelect.svelte';
    import { invalidate

... (truncated -- full source via MCP)

See the full source, get the GitHub permalink, and search 40K more like it.

Get a free API key