Closed jeremydouglas closed 4 years ago
@jeremydouglas what version of PHP are you on?
7.3.11
@edalzell,
I now have roles adding properly, but when changing from one plan/role to another, the old one isn't removed. Can you confirm?
@edalzell,
These are the scripts that the {{ charge:js }}
tag is loading to the page:
<script type="text/javascript">var Charge = {"plan":null,"freePlan":null};</script>
<script src="/_resources/addons/Charge/js/charge-new.js"></script>
The src on the second tag looks like it's not pointing to the js file in the add-on. Is that a big deal?
@edalzell,
I now have roles adding properly, but when changing from one plan/role to another, the old one isn't removed. Can you confirm?
@jeremydouglas how are you changing them?
I have several plans in my charge config with roles attached to each plan.
When a user subscribes to a plan, the role is being applied. When they subscribe to a different plan, the role associated with the plan the were formerly on isn't removed.
I'm still learning how Stripe works with subscription plans. I'm guessing changing plans might not remove users from the previous plan they were on?
should work, it's a bug. Will test later this week.
Sorry for the delays, I typically only work on charge in the evenings and been spending more time w/ family.
Thanks Erin, I know how it is.
I'm hoping to take a site using Charge to a soft-launch and demo in the next week. I think I should be able to work around the bugs for now. At this point, I think that's easier than me upgrading to Statamic 3 Beta and using Laravel Cashier. Like, by far! And, then there's bugs there too :(
I'm getting this error when a user subscribes and user roles are set:
If it helps, this is what I'm using as a charge config file: