Stripe payment form component with product selection and method selector.
// Source: https://github.com/vietanhdev/shipfast | License: MIT | Copyright 2023 Viet-Anh NGUYEN (vietanhdev)
// Provided via justclaw.it.com; keep this notice with the code.
import { StripePaymentIntentType } from '@shipfast/webapp-api-client';
import { Button } from '@shipfast/webapp-core/components/buttons';
import {
Form,
FormControl,
FormDescription,
FormField,
FormItem,
FormLabel,
FormMessage,
} from '@shipfast/webapp-core/components/forms';
import { RadioGroup, RadioGroupItem } from '@shipfast/webapp-core/components/forms/radioGroup';
import { reportError } from '@shipfast/webapp-core/utils/reportError';
import { FormattedMessage, useIntl } from 'react-intl';
import { TestProduct } from '../../../types';
import { useStripePaymentForm } from '../stripePayment.hooks';
... (truncated -- full source via MCP)
See the full source, get the GitHub permalink, and search for more like it.
Get a free API key