Delete pending offline/check payment baskets after x days

2 months 2 weeks ago #307081 by cpaschen
We have a subscription option that allows offline/check payments.

We have some users who abandon their subscriptions (never pay the subscription).via offline process.

We would like to create an Auto Action that would automatically delete any pending Payment Baskets that have a specific Gateway account and whose Initiated on date is 60 days ago.

Can you tell me IF this is possible with Auto Actions, and if so, what the trigger, conditions, and Action would be?
2 months 2 weeks ago #307082 by krileon
There's no trigger for that. You'd need to use CRON with probably a Query action and triggers set to None. The CRON would target the auto actions URL. You'd then need to put all those checks in a custom SQL to delete those baskets and any other data attached to the basket directly in the database. Probably easier to just filter CBSubs > Baskets once every 6 months to a year and clear them manually. Baskets won't expire if in a Pending state; maybe a feature to consider in a future release (e.g. expire baskets pending for 3 months).


Kyle (Krileon)
Community Builder Team Member
Before posting on forums: Read FAQ thoroughly + Read our Documentation + Search the forums
CB links: Documentation - Templates - CBSubs - Hosting - Forge - Incubator - GroupJive
--
If you are a Professional, Developer, or CB Paid Subscriptions subscriber and have a support issue please always post in your respective support forums for best results!
--
If I've missed your support post with a delay of 3 days or greater and are a Professional, Developer, or CBSubs subscriber please send me a private message with your thread and will reply when possible!
--
Please note I am available Monday - Friday from 8:00 AM EST to 4:00 PM EST. I am away on weekends (Saturday and Sunday) and if I've missed your post on or before a weekend after business hours please wait for the next following business day (Monday) and will get to your issue as soon as possible, thank you.
--
My role here is to provide guidance and assistance. I cannot provide custom code for each custom requirement. Please do not inquire me about custom development.
Moderators: beatnantkrileon
Time to create page: 0.703 seconds
Facebook Twitter Google LinkedIn