Total Posts: 27
Hi Guys (and girls!?)
I’m working on a COD (Cash on delivery) payment module at the moment. The biggest problem is, that the module has to add additional cost to the shipping total.
Shipping: Airmail, Payment: Credit Card -> Shipping Cost: â¬ 20,00
Shipping: Airmail, Payment: COD -> Shipping Cost: â¬ 25,00
I already built the module and created a overloaded method for the “getTotals” of Mage_Sales_Model_Quote. The problem is, that now i need to know wich Payment type the customer has chosen during checkout. Cause only if he has chosen “COD”, i can change the total by the getTotals->setData() method. Otherwise the COD Cost will alway be added, whatever payment type is chosen by the costumer.
So my question is:
Can anybod tell me, over wich object / method I’m able to get the selected Payment ID / Title / information during the checkout process? I already tried some sales->quote and checkout methods, but couldn’t find the right one.
Thanks a lot in advance,