🔧 Development
René René May 30, 2023

Paywall for User Groups

What would be the best way to integrate a paywall that automatically adds users to a User Group?

I'd like to use a Stripe payment link and have the users be added to a set of groups - Would this require an integration with Zapier, or something like Trigger? Or does Waterhouse have a a different method to approach this?

👍️ 1 Like Loading...
2 ⁨2⁩ ⁨comments⁩
Answered by Toby Toby

Yep, @Wulfheart is correct. Waterhole doesn't currently support any integration with Zapier or Trigger – though a JSON API is on the roadmap which would potentially make these possible.

For now, the recommended way would be to write some Laravel code to listen for a Stripe webhook and then add the Waterhole user to the desired group:

use Waterhole\Models\User;

$user = User::where('email', $email)->firstOrFail();
$user->groups()->attach(5);
View Answer

⁨2⁩ ⁨Comments⁩

It is a Laravel application. So you can write code that does this for you and can let it be called by webhooks or whatever Stripe uses. You might also want to use Laravel Cashier.

Answer
Toby Toby Waterhole Founder Jun 4, 2023

Yep, @Wulfheart is correct. Waterhole doesn't currently support any integration with Zapier or Trigger – though a JSON API is on the roadmap which would potentially make these possible.

For now, the recommended way would be to write some Laravel code to listen for a Stripe webhook and then add the Waterhole user to the desired group:

use Waterhole\Models\User;

$user = User::where('email', $email)->firstOrFail();
$user->groups()->attach(5);