[Date Prev][Date Next][Thread Prev][Thread Next][Minivend by date
][Minivend by thread
]
Re: [mv] Multiple Payment Methods
On Tue, 14 Sep 1999, Patrick Schoonveld wrote:
> ****** message to minivend-users from Patrick Schoonveld <pschoonveld@venux.net> ******
>
> I have been trying to configure duplicity between cybercash and
> mailing/faxing the receipt for the past week. I am failing miserably.
>
> Does anyone have any idea how to make it such that a user can click on a
> button and choose between credit card (cybercash) and just printing an
> mailing/faxing a receipt??
>
> I saw someone's mention of two different checkout pages, and that would be
> just fine. I just can't seem to figure out how to do that.
>
> Any tips/tricks would be appreciated.
> Thanks,
> Patrick
Eerst moet je...
OK, my Dutch is pretty pathetic now :-(
The "simple" demo has some code that partially does this if I remember
correctly. You need to have the following things:
Checkout page:
1) make sure there is a choice for the user (a radio button works well) to
choose the kind of order to make.
2) that choice must set a variable that MV can access. I.e. a radio
button with a known name.
3) in the checkout-profile, you need to have code that changes its actions
based on the value of said radio button.
[if value payment_type eq 'CC']
... do CC stuff including CyberCash set up/call...
[else]
... do fax checkout profile checks ...
[/else]
[/if]
...
Receipt Page:
4) on the receipt page, check to see what kind of payment method was
selected and display the appropriate information.
I use this method and it works quite well.
Best,
Kyle