PLATFORM
  • Tails

    Create websites with TailwindCSS

  • Blocks

    Design blocks for your website

  • Wave

    Start building the next great SAAS

  • Pines

    Alpine & Tailwind UI Library

  • Auth

    Plug'n Play Authentication for Laravel

  • Designer comingsoon

    Create website designs with AI

  • DevBlog comingsoon

    Blog platform for developers

  • Static

    Build a simple static website

  • SaaS Adventure

    21-day program to build a SAAS

Question By
Solved

Recharge method

Solved
servicioit

Feb 9th, 2023 03:31 PM

hi, i need code this recharge method, starting in USD$5, increasing 5 dollars each step up to 100. in tow methods: once (product) and recurrent (subscription), both gives 30 days access to dashboard

Screenshot 2023-02-09 at 6.21.18 PM.png

ideas how to code it, thanks

bobbyiliev

Feb 10th, 2023 05:11 AM

Best Answer

Hi there!

At the moment Wave only supports subscription based plans, note time payments would need to be implemented separately.

For your usecase, what you could do is have different plans with different prices, that way the user could choose between the different plans which will give them access to the dashboard for longer periods. For example you could have 10 different plans:

  • Plan 1 = $5 = 1 month access
  • Plan 2 = $10 = 2 months access
  • Plan 3 = $15 = 3 months access

And so on for each price that you need, and with the slide, you could just change the plan ID for the Paddle checkout. For one time payments the logic will need to be implemented separately.

Hope that this helps! Let me know how it goes.

Best,

Bobby

Report
1
avinash

Mar 30th, 2023 06:55 AM

Hi Bobby,

Hope you're well! I have the same need to have one-off payments. Since I'm aware Wave only supports Paddle subscription plans at the moment, if I were to add the support for Paddle Products too during signup, where would I start looking for in the Wave source code?

Thanks!

bobbyiliev

Mar 30th, 2023 07:39 AM

Hi there!

That would be in the SubscriptionController.php file.

Though this will require you to change quite a bit of the logic in there.

Maybe an easier approach would be to let the users register for an account first, and then once they've logged in, then you could add a separate controller and a route to handle the single product purchase options.

Hope that this helps!

Report
1
avinash

Mar 30th, 2023 08:04 AM

Thank you, Bobby, for the quick reply on this! Much appreciated!

Yes, it indeed makes sense to just add a fresh controller and route to handle single products.

Have a brilliant day!

Report
1
bobbyiliev

Mar 30th, 2023 08:12 AM

No problem at all! Good luck with your project!