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

Authorizenet Array Construction
 
dan_w
Sr. Member
 
Total Posts:  290
Joined:  2008-01-04
 

Hopefully someone here can help me out. I am trying to write a new payment module for a gateway similar to Authorizenet. Right now, I am just trying to hack the Authorizenet module to see how things work, and I was wondering if anyone knew where/how setXLogin, setXAmount, and so on are translated into the variable names x_login, x_amount in the transaction array that is posted to Authorizenet. Hopefully that makes some sense. Any help appreciated.

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

@dan_w: this is done in Varien_Object::__call() method, using _underscore() method

 
Magento Community Magento Community
Magento Community
Magento Community
 
dan_w
Sr. Member
 
Total Posts:  290
Joined:  2008-01-04
 

The new payment module works perfectly. I have one more question though. The payment processor requires the exp date to be in mmyy format when posted. Currently, magento posts mm-yyyy. Any thoughts on where I would change how the year is handle in cc entry? As always, thanks for any insight.

 
Magento Community Magento Community
Magento Community
Magento Community
 
YoavKutner
Guru
 
Avatar
Total Posts:  491
Joined:  2007-08-08
 

dan_w - Could I please ask what gateway you are trying to add.

Thanks

yoav

 
Magento Community Magento Community
Magento Community
Magento Community
 
dan_w
Sr. Member
 
Total Posts:  290
Joined:  2008-01-04
 

Certainly. It’s for two gateways on the Nova Network: Viaklix and MyVirtualMerchant. Both require the exp_date to be in mmyy format.

Edit: Disregard the original question about passing the exp_date in mmyy. My eyes must have been a little cloudy at the time. A simple fix.

 
Magento Community Magento Community
Magento Community
Magento Community
 
mzentrale1
Guru
 
Total Posts:  731
Joined:  2007-12-06
Stuttgart, Germany
 

Hi,

i found that in Authorizenet.php:

if($payment->getCcNumber()){
$request->setXCardNum($payment->getCcNumber())
->setXExpDate(sprintf(’d-d’, $payment->getCcExpMonth(), $payment->getCcExpYear()))
->setXCardCode($payment->getCcCid());
}

Kr

Stefan

 
Magento Community Magento Community
Magento Community
Magento Community
 
NewSwell
Jr. Member
 
Total Posts:  2
Joined:  2008-04-01
 

Dan,
Can you post your source code for the viaklix module here? I have to set up a viklix payment system and your code would be a great help! I’m sure others in the community would be grateful as well.
Thanks!
Brian

 
Magento Community Magento Community
Magento Community
Magento Community
 
justsuspension
Jr. Member
 
Total Posts:  20
Joined:  2008-07-01
 

I agree - having a module for viaKLIX would be extremely helpful.  I hope you’re able to post it, and thanks in advance!

 
Magento Community Magento Community
Magento Community
Magento Community
 
WhoIsGregg
Member
 
Total Posts:  64
Joined:  2008-09-02
Tampa, Florida
 

I am also in need of a ViaKlix module. I hope you can post it! smile

 
Magento Community Magento Community
Magento Community
Magento Community
 
Sharkie
Jr. Member
 
Total Posts:  1
Joined:  2008-08-12
 

has anyone developed a module for viaklix?

 
Magento Community Magento Community
Magento Community
Magento Community
 
SaveInstant
Member
 
Avatar
Total Posts:  31
Joined:  2008-11-17
Calgary
 

I need VIAKLIX as well before we can switch our 3 onlinestores running on CandyPress shopping cart for last 6 years.
I am willing to pay if someone can do it for us.
Please let me know

Regards
Jay

 
Magento Community Magento Community
Magento Community
Magento Community
 
Danimaltron
Jr. Member
 
Avatar
Total Posts:  9
Joined:  2008-01-29
 

I am looking for a ViaKlix module as well. Also willing to put down some money for working code.

 
Magento Community Magento Community
Magento Community
Magento Community
 
Tweakmag
Guru
 
Avatar
Total Posts:  307
Joined:  2007-08-31
London, UK
 

Hi There,
We are releasing a ViaKlix payment module in the next day or two.
Cheers
Adam

 
Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
Back to top