Jan 28, 2017
0
Level 2
Managing Multiple Subscriptions with Laravel 5.2 and Cashier 6
Hi,
I am looking for advice.
I am building an application that allows a customer to purchase hosting. I want to allow a customer to purchase multiple hosting services.
For example, I have a Lite and a Pro Hosting package.
If a customer purchases two Lite Hosting Packages when trying to cancel one using the below code:
$user->subscription('main')->cancel();
How can I select which subscription I want to cancel? If I cancel the main subscription it only cancels the one that was created first. I want to be able to specify which subscription of the two.
Am I making it complicated by having multiple subscriptions with the same name?
Please or to participate in this conversation.