You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
My website offers user's ability to subscribe to several subscriptions at the same time. Currently, I have created products that represent each subscription so they may be added to the cart. These products are purchased like a regular 'purchasable' element.
My plugin listens to the event EVENT_AFTER_COMPLETE_ORDER and finds all subscriptions that were in the completed order. I could create each subscription individually using Craft's createSubscription() method found in craft\commerce\services, but doing so causes multiple invoices to be sent out to customers and each invoice created is also charged a fee by Stripe.
I am able to use the Stripe API to do this successfully but at the cost of bypassing Craft. Is there a way to do this through Craft so it knows about all subscriptions that have been created?
The text was updated successfully, but these errors were encountered:
@gvwarrior Unfortunately, not at the time. Subscription plans as purchasables that can be added to the cart is on the list and as soon as that happens, you'll be able to do this.
Versions: - Craft CMS (3.1.21) - Craft Commerce (2.1.2) - Stripe for Craft Commerce (1.2.0)
Problem:
My plugin listens to the event EVENT_AFTER_COMPLETE_ORDER and finds all subscriptions that were in the completed order. I could create each subscription individually using Craft's createSubscription() method found in craft\commerce\services, but doing so causes multiple invoices to be sent out to customers and each invoice created is also charged a fee by Stripe.
My Goal is to create one subscription that contains several subscriptions inside of it (https://stripe.com/docs/billing/subscriptions/multiplan). This would only generate one invoice.
I am able to use the Stripe API to do this successfully but at the cost of bypassing Craft. Is there a way to do this through Craft so it knows about all subscriptions that have been created?
The text was updated successfully, but these errors were encountered: