Search found 7 matches

by mrkepzie
14 Jun 2024, 13:11
Forum: Laravel package
Topic: Subscription cancellation fee
Replies: 13
Views: 101677

Re: Subscription cancellation fee

Back on the original topic: Basically to implement Cancellation fee we need a "Commitment Date Begin" added to a Subscription and an interval indicated on the product (probably in hidden product attributes?) indicating the "Commitment Period". What would be the correct worfklow t...
by mrkepzie
10 Jun 2024, 21:46
Forum: Laravel package
Topic: Subscription cancellation fee
Replies: 13
Views: 101677

Re: Subscription cancellation fee

Thanks for the fix, seems it did the trick!
by mrkepzie
10 Jun 2024, 10:21
Forum: Laravel package
Topic: Subscription cancellation fee
Replies: 13
Views: 101677

Re: Subscription cancellation fee

The error occurs even without any additional code: - I order a subscription of a product with PT1H - The subscription/process/begin job is executed and properly saves the order - Upon executing the subscription/process/renew job the following occurs: The process() function creates a new order copied...
by mrkepzie
08 Jun 2024, 11:02
Forum: Laravel package
Topic: Subscription cancellation fee
Replies: 13
Views: 101677

Re: Subscription cancellation fee

Thank you Circling back on the exception: The cause is the save of the orderItem on the renew job, since the order.id is the same as the order that was given in the begin job. Getting this know pretty much always on renew: PDOException: SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate...
by mrkepzie
07 Jun 2024, 17:00
Forum: Laravel package
Topic: Subscription cancellation fee
Replies: 13
Views: 101677

Re: Subscription cancellation fee

Ok so this is my guess, after going through the debugger: Since the renew job only checks the date and not the time (i.e: 'Y-m-d '), it will always pick up a PT1H subscription since the subscription.datenext is the same as the current date. This means that if the cron job (or if manually executing a...
by mrkepzie
06 Jun 2024, 06:47
Forum: Laravel package
Topic: Subscription cancellation fee
Replies: 13
Views: 101677

Re: Subscription cancellation fee

Thank you for your pointer. We've been trying making a new processor in a new package (and registered it in the config/controller.php), which for now just logs begin/renewAfter/end events. A few questions: - It seems a begin/end can be called multiple times with the same customerID/orderID. We have ...
by mrkepzie
03 Jun 2024, 06:42
Forum: Laravel package
Topic: Subscription cancellation fee
Replies: 13
Views: 101677

Subscription cancellation fee

HI, We are currently assessing whether aimeos would be a good fit to port some of our custom store logic. One feature we offer to our clients is annual subscription with monthly payments (using Stripe). This is equivalent to a monthly subscription, except that when the customer cancels, we charge a ...