The configuration in one-time-pricing.ts consists of the following settings for each plan:

Go to the Stripe Dashboard to create a new price for each plan. The price identifier is used to identify the plan in the application. The price identifier is unique to each plan and can be found in the Stripe Dashboard.

Then copy the price identifier and paste it into the priceId field in the one-time-pricing.ts file.

Stripe Copy Price ID
one-time-pricing.ts
export const OneTimePayments = {
	plans: [
	{
		name: 'Starter',									// Display name of the pricing plan
		id: 'tier-starter',									// Unique identifier for the plan
		priceId: process.env.NODE_ENV === 'development'
			? 'price_1234' 									// The price identifier to test in the development environment
			: 'price_5678',									// The price identifier to use in the production environment
		discountId: "", 									// Optional discount coupon identifier (use the discount Id)
		amount: '$99',										// The regular price of the plan
		discount: '$49',									// Optional discounted price
		isMostPopular: true,								// Boolean flag to highlight the most popular plan
		features: [
			{ name: 'Feature 1', available: true },			// Array of features included in the plan
			{ name: 'Feature 2', available: true },
			{ name: 'Feature 3', available: true },
		],
	},
	...
	],
};

The OnetimePricing component is used to display the one-time payment plans in the application.