[Date Prev][Date Next][Thread Prev][Thread Next][Minivend by date
][Minivend by thread
]
Re: [mv] Charging for recurring, periodic services
Quoting Randy Moore (ramoore@axion-it.net):
> ****** message to minivend-users from Randy Moore <ramoore@axion-it.net> ******
>
> Hi All,
>
> I'm trying to setup Minivend to charge for recurring monthly services.
>
> I've come up with two basic approaches and I'd be interested in comments
> from the list on potential problems or better approaches.
>
> For both approaches, I'll use Minivend to take orders and allow customers
> to add/delete/change recurring orders and their personal contact & billing
> info. The items ordered on a recurring basis will be stored in a special
> Minivend database.
>
> The approach I'd like to use is to create a special minivend page that:
> Reads the recurring orders database
> Loops through the orders
> filling in a cart for each order
> filling in the customer info, name, addr, cc#, etc.
> Process each order <-- This is the part I'm not sure about
> Go to next order
>
> But, I'm not sure if I can "submit" the order for processing from an
> embedded Perl script. I'm pretty sure I can setup all the other needed
> variables.
>
> Any suggestions on how to submit an order for processing without clicking
> on a form???
# minivend.cfg
UserTag submit-order Routine <<EOR
sub {
$::Values->{mv_todo} = 'submit';
::do_process();
}
EOR
In Minivend 4, not needing to be global (unless products are based on SQL):
$Tag->update('values');
$Tag->update('process');
or
[update values]
[update process]
At least after I add the 'process' action in the next iteration. 8-)
--
Mike Heins http://www.minivend.com/ ___
Internet Robotics |_ _|____
Any man who is under 30, and is 131 Willow Lane, Floor 2 | || _ \
not liberal, has not heart; and Oxford, OH 45056 | || |_) |
any man who is over 30, and is not <mikeh@minivend.com> |___| _ <
a conservative, has not brains. 513.523.7621 FAX 7501 |_| \_\
-- Winston Churchill