Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

ilex01's avatar

How do I set up a price in spark.php?

How do I set up a price in spark.php:

'billables' => [

	'user' => [
		'model' => User::class,

		'trial_days' => 5,

		'default_interval' => 'monthly',

		'plans' => [
			[
				'name' => 'Standard',
				'short_description' => 'This is a short, human friendly description of the plan.',
				//'monthly_id' => env('SPARK_STANDARD_MONTHLY_PLAN', 1000),
				'yearly_id' => env('SPARK_STANDARD_YEARLY_PLAN', 1001),
				'features' => [
					'Feature 1',
					'Feature 2',
					'Feature 3',
				],
				'archived' => false,
			],
		],

	],

],
0 likes
3 replies
ilex01's avatar
ilex01
OP
Best Answer
Level 5

I use stripe. I had to add a product on Stripe and get its App Id.

Please or to participate in this conversation.