Subscription jobs

How to configure and adapt Aimeos based shops as developer
Forum rules
Always add your Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
Justus
Posts: 13
Joined: 02 Aug 2022, 19:19

Subscription jobs

Post by Justus » 09 Aug 2023, 17:40

I have seen the following in the documentation
Once a day#
These jobs should be executed once a day (best at times of low traffic):

Start subscription period (start subscription period and add permissions if applicable)
Renew subscriptions (renew subscriptions on next date)
End subscription period (finish subscriptions and revoke permissions if applicable)
but what if I need to set permissions immediately after successful payment? The job will not work because it runs once a day.
Also it will not work correctly if the subscription lasts less than 1 day, for example 1 hour

I think after payment I need to trigger begin process manually

User avatar
aimeos
Administrator
Posts: 7894
Joined: 01 Jan 1970, 00:00

Re: Subscription jobs

Post by aimeos » 10 Aug 2023, 08:39

You can run the subscription jobs every minute if required
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

Justus
Posts: 13
Joined: 02 Aug 2022, 19:19

Re: Subscription jobs

Post by Justus » 10 Aug 2023, 10:40

ok, but I will run the process manually after paying for the subscription, the user should not have to wait a while for the permissions

Justus
Posts: 13
Joined: 02 Aug 2022, 19:19

Re: Subscription jobs

Post by Justus » 10 Aug 2023, 10:47

it also seems to me that I found a bug in the repay process for the Stripe provider, the price for the order will not take into account the price of the products, since only 'order/base/service' is set in the $ref for the getOrderBase method
2023-08-10-133642.png
2023-08-10-133642.png (155.42 KiB) Viewed 16326 times
2023-08-10-133449.png
2023-08-10-133449.png (142 KiB) Viewed 16326 times
if so, I can make a pull request with a fix

User avatar
aimeos
Administrator
Posts: 7894
Joined: 01 Jan 1970, 00:00

Re: Subscription jobs

Post by aimeos » 12 Aug 2023, 09:40

If you think you've found a bug, please create an issue or an PR in the Github repository :-)
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

Post Reply