I'm trying to build a pricing section on my landing page. I'm able to loop through the plans I've specified in my config file but I'm at a loss as to how to access the prices for each plan, I can only return the ID for the monthly or yearly plan from Paddle.
I've tried looking at the Vue files in vendor/laravel/spark-paddle/resources/js/components but it's still not clear to me.
If you look at how Spark is designed, the static config file (config/spark.php) only holds the configuration and the Paddle Price IDs. It doesn't store the actual price values because those are fetched dynamically from Paddle's API to ensure currency localization and tax/VAT calculations are accurate based on the user's IP.
As Martin pointed out above, Spark uses Cashier::previewPrices() under the hood to fetch these values dynamically.