Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls
 

ANZ eGate Improvement

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions
 
Thread Tools Search this Thread
  #1  
Old 10-07-2008, 02:55 AM
 
nft nft is offline
 

Advanced Member
  
Join Date: Apr 2004
Location: Sydney, Australia
Posts: 52
 

Default ANZ eGate Improvement

Hello,

I have created the following improvement to the ANZ eGate payment gateway. This payment gateway is likely to only be relevant to Australia and New Zealand merchants.

This is a change to the file cc_anz_mh.php found in /payment

Improvements: Previously the 'Order Number' and 'Login' were passed as 'ANZ Extended Order Info' only which would leave 'Order Reference' unpopulated. This modification will populate 'ANZ Extended Order Info' with the customers login id 'Order Reference' with the order number.

Note: Once you have an ANZ eGate merchant account setup you will need to ask the helpdesk to configure your account to use anzExtendedOrderInfo. Alternatively you can simply remove the line $post[] = "vpc_anzExtendedOrderInfo=".$userinfo['login']; if you do not want to use extended order info.

In cc_anz_mh.php

Find:

$post[] = (strlen("Order #".join("-",$secure_oid)."; customer: ".$userinfo['login']) > 34 ? "vpc_anzExtendedOrderInfo" : "vpc_OrderInfo")."=Order #".join("-",$secure_oid)."; customer: ".$userinfo['login'];

Replace with:

$post[] = "vpc_OrderInfo=".join("-",$secure_oid);
$post[] = "vpc_anzExtendedOrderInfo=".$userinfo['login'];

Regards,

James
__________________
X-Cart Pro 4.1.9
FreeBSD
Apache
MySQL 5
PHP 4.4.8
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 06:10 AM.

   

 
X-Cart forums © 2001-2020