V
V
Vlad Volodko2019-12-06 19:15:17
Laravel
Vlad Volodko, 2019-12-06 19:15:17

How to make a subscription system on the site?

Hello. Interested in the question of how best to implement a system of paid subscriptions on the site. I am using Laravel 5.5. There is a LARAVEL CASHIER package which is very cool but works with payment systems that are not available in my country.
Are there any packages for this?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
V
vism, 2019-12-06
@vism

I doubt it, it's better to implement it yourself, spend as much time as adapting others.
The same Cacher is very "limited", almost all projects needed functionality different from the one that it provides.
And if you need a package wrapper over another system, then you need to search for it on the github, for example.
And if you yourself write an interface-based adapter for some kind of factory like Kashira, you will spend many times more time.

L
Latnos, 2021-07-03
@Latnos

I'm certainly late, but I think it will not be superfluous.
You can use the laravel-permission package ( https://spatie.be/docs/laravel-permission/v4/intro... ), then you need to create several roles, user is a standard role, vip is a role after subscription, then for each role to make its own permissions - access rights, then where it is necessary to check whether the user has such rights and issue the necessary information. Accordingly, after payment, give the user the appropriate role.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question