Index: openacs-4/packages/ecommerce/tcl/ecommerce-widgets-procs.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/ecommerce/tcl/ecommerce-widgets-procs.tcl,v diff -u -r1.20 -r1.21 --- openacs-4/packages/ecommerce/tcl/ecommerce-widgets-procs.tcl 25 Aug 2008 12:00:05 -0000 1.20 +++ openacs-4/packages/ecommerce/tcl/ecommerce-widgets-procs.tcl 16 Sep 2008 13:42:53 -0000 1.21 @@ -691,21 +691,17 @@ } { Credit card selector } { - set payment_gateway [ad_parameter -package_id [apm_package_id_from_key "ecommerce"] PaymentGateway] - if {[acs_sc_binding_exists_p "PaymentGateway" $payment_gateway]} { - - # Use the cards accepted by ecommerce package or if none have - # been specified (in the CreditCardsAccepted parameter) use - # the cards accepted by the payment gateway implementation. - - array set info [acs_sc_call PaymentGateway Info [list] $payment_gateway] - set accepted_credit_cards $info(cards_accepted) + set payment_gateway [parameter::get -package_id [apm_package_id_from_key "ecommerce"] -parameter PaymentGateway] + if {[acs_sc_binding_exists_p "PaymentGateway" ${payment_gateway}]} { + # Use the cards accepted by ecommerce package or if none have + # been specified (in the CreditCardsAccepted parameter) use + # the cards accepted by the payment gateway implementation. + array set info [acs_sc_call PaymentGateway Info [list] ${payment_gateway}] + set accepted_credit_cards $info(cards_accepted) } else { - - # There is no binding to a payment gateway, thus use the cards - # accepted by the ecommerce package. - - set accepted_credit_cards [ad_parameter -package_id [apm_package_id_from_key "ecommerce"] CreditCardsAccepted] + # There is no binding to a payment gateway, thus use the cards + # accepted by the ecommerce package. + set accepted_credit_cards [parameter::get -package_id [apm_package_id_from_key "ecommerce"] -parameter CreditCardsAccepted] } set to_return "