Posting in the Magento forums has been disabled pending the implementation of a new and improved forum solution which should better serve the community.

For new questions please post at magento.stackexchange.com, the community-run support site for the Magento community. We will be providing updates on the new forum solution soon. For questions or concerns please email community@magento.com.

Magento Forum

Authorize.net Payment Method - Modify Expiration Date
 
vengy
Jr. Member
 
Total Posts:  7
Joined:  2008-04-27
 

I am using the Authorize.net payment method, but using it with CDGcommerce’s quantumgateway Emulation auth mode.  They only accept the expiration date as MMYY (month Year).

Example,

Magento Store takes 02 / 2011 as month / year, and is submitting 02-2011 to the gateway.  I need to submit 0211 instead—any ideas where to change this?

Thanks.

 
Magento Community Magento Community
Magento Community
Magento Community
 
Moshe
Magento Team
 
Avatar
Total Posts:  1770
Joined:  2007-08-07
Los Angeles
 

Override app/code/core/Mage/Paygate/Model/Authorizenet.php

on line 305:

->setXExpDate(sprintf('d-d'$payment->getCcExpMonth(), $payment->getCcExpYear()))
 
Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
Back to top