I'm using laravel 5.6 and creating payments for the first time. I'm using the below package as their documentation is simple and awesome. PayU Money Payment Gateway Laravel
I did exactly same as mentioned in documentation so not posting any code here. Now i can process payments and check status of the payments. My question is the application has premium content. Lets say for example a user searches for a trainer and books him for a package. Once he makes the payments, on his dashboard he will be able to view workplan sent by the trainer.
If i use is_premium column in the users table which is boolean, how would i change the value automatically when the user makes payment. And i have no idea how to implement the monthly subscription. I'm guessing adding a expires_at column and adding a date.
Is there a example or tutorial that can help me. Any suggestions or thoughts from experienced developers would be helpful.
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire