- Issue created by @jbuttler
When a user purchases a subscription, and uses a gift card or promotion, the subscription is not created at all. Instead a license is created, and the license has no expiration. My site checks the subscription status to grant users access. If no subscription is created, the user cannot do anything, because they are not subscribed. I cannot use the license instead of the subscription to check for access because they are granted an active license which does not expire.
I tested and verified that using a payment method triggers the subscription successfully even for a small amount. But if a payment method is not applied to the order then a recurring order is not created, and the user gets a perpetual license instead
Since the subscription is not created and the license lasts forever, this means that coupons, gift cards, and other promotions cannot be used with subscriptions.
Is there a way to still create the active subscription with the correct expiration date when a promotion is used? I have tried everything I can without any success. This seems to be a bug in the subscription function as well as a bug in the licensing function.
Active
Code