Forums / Developer / Let customers choose creditcard or invoice?
Petter Arneson
Monday 24 July 2006 1:40:13 am
Hi!
I have a shop (ezpublish 3.7.5) set up with paynet gateway. Now the customer wants to let the resellers to have a choice between payment via creditcard or ordermail.
I've added a usergroup for discount etc., and put a radiobutton in confirmorder (creditcard/invoice), but I dont know how to skip the payment redirecting.
I tried exiting the workflow, but then the process/order is not completed. Any tips?
www.vzt.no
Stuart Fenton
Monday 24 July 2006 2:04:43 am
I think you should probably write a workflow to allow you to choose the type of payment you want to take.
The workflow would look at a radio select button (with multiple choices) then after the user continues makes the choice of which workflow to run next.
This would be triggered after confirm order but if you hit any obstacles you could create a new trigger after confirm order that allows you to hook the other workflows to.
A different approach would be to use the multiplexer to test for a variables (perhaps stored in the session variable) to decide on which workflow to run.
Of course both of these approaches would need you to create a workflow for payment by invoice instead of by card.
RegardsFats
-- Stuart [email protected] http://www.grandmore.com
Monday 24 July 2006 6:42:11 am
Thanks!
Your second suggestion seems like the best way to do it.
I didn't have the time to do this, but I managed to get it working with a radiobutton, setting a sessionvariable and a dirty fix in ezredirectgateway's execute function where I set the event_state and status manually.
Mike Coker
Sunday 30 December 2007 3:00:59 am
Petter, how did you get the selection option and which files were needed to be edited in order for the end user to get an invoice emailed to them. I have a client now that is asking for PayPal or Direct Debit (invoice effectively) which sounds similar to your CC or Invoice solution. Can you explain?
Many thanks,
Mike Coker, BFA (Hons.) Senior Designer & Strategist | Director Quiqcorp Ltd | Web and Brand Development | Quiqcorp.com