View Single Post
  #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