[ic] multiple payment gateways

Scott Andreas webteam at wes-state.com
Wed Nov 24 17:26:34 EST 2004


Hello Users

I'm trying to implement a multiple payment configuration. This method 
works if value wsm !=1 but if wsm == 1 then it doesn't pass to 
authorize.net.. In log_transaction I have...
[if value wsm == 1]
        [tmp name="charge_succeed"][charge
                                     mode="authorizenet"
                                     id="my_id"
                                     secret="my_secret"
                                     trankey="my_trankey"
                                     expandable="1"]
        [/tmp]
        [else]
    [tmp name="charge_succeed"][charge route="[var MV_PAYMENT_MODE]"]
        [/tmp]
        [/else]
        [/if]

and I've tried.. this method doesn't pass anything to authorizenet put 
the order still gets entered into the transactions table

[if value wsm == 1]
        [tmp name="charge_succeed"][charge
                                     mode="authorizenet"
                                     id="my_id"
                                     secret="my_secret"
                                     trankey="my_trankey"
                                     expandable="1"]
        [/tmp]
        [else]
    [tmp name="charge_succeed"][charge
                                     mode="authorizenet"
                                     id="my_id2"
                                     secret="my_secret2"
                                     trankey="my_trankey2"
                                     expandable="1"]]
        [/tmp]
        [/else]
        [/if]

in catalog.cfg I have

Variable   MV_PAYMENT_MODE  authorizenet
#Route authorizenet test TRUE


## These routes are not order routes, but payment routes
Route  authorizenet  id           "__MV_PAYMENT_ID__"
Route  authorizenet  secret       "__MV_PAYMENT_SECRET__"
Route  authorizenet  host         "__MV_PAYMENT_HOST__"
Route  authorizenet  referer      "__MV_PAYMENT_REFERER__"
Route  authorizenet  trankey      "__MV_PAYMENT_TRANKEY__"
Route  authorizenet  expandable    1


IC 5.2

Any help would be grateful

Thanks
Andreas




More information about the interchange-users mailing list