Zen Cart Logo
Forums / Addon Payment Modules / National Australia Bank Internet Merchant Options

National Australia Bank Internet Merchant Options

Views: 31,753

Results 61 to 80 of 89
29 Dec 2012, 1:09 AM
#61
ginar avatar

ginar

New Zenner

Join Date:
Feb 2006
Posts:
83
Plugin Contributions:
0

National Australia Bank Internet Merchant Options

babyvegas:

I ended up paying someone on ODesk to fix it for me. It works now, but I have no idea what they did to fix it. Sorry.

How much did you end up paying and do you still have the name of the person who fixed it... i think I will have to get the same done as you.

29 Dec 2012, 4:06 AM
#62
babyvegas avatar

babyvegas

New Zenner

Join Date:
Jul 2011
Posts:
18
Plugin Contributions:
0

Re: National Australia Bank Internet Merchant Options

ginar:

How much did you end up paying and do you still have the name of the person who fixed it... i think I will have to get the same done as you.

This is the profile of the person I used to fix my NAB Module to work with PHP5.3
https://www.odesk.com/users/~01c7d38f4706d745c0

Hopefully that link brings up his profile. I can't remember exactly what I paid but I think it was around $70?? I paid $10.50 per hour.

30 Dec 2012, 1:45 PM
#63
i2ts avatar

i2ts

New Zenner

Join Date:
Jan 2009
Posts:
26
Plugin Contributions:
0

Re: National Australia Bank Internet Merchant Options

Apologies for the delay in responding to the question. I debugged how the addon handles the call back from NAB Transact. I noticed the code in init_session.php (kind of) ignores the callback if the call back URL is not SSL.

The following fix might solve the issue:

$gateway_vars['return_link_url'] = zen_href_link(FILENAME_CHECKOUT_SUCCESS, '', 'NONSSL', true);
$gateway_vars['reply_link_url'] = zen_href_link(FILENAME_CHECKOUT_PROCESS, $query_string); 

Replace them with

$gateway_vars['return_link_url'] = zen_href_link(FILENAME_CHECKOUT_SUCCESS, '', 'SSL', true);
$gateway_vars['reply_link_url'] = zen_href_link(FILENAME_CHECKOUT_PROCESS, $query_string,  'SSL' ); 

This will ensure NAB Transact will call back a SSL URL. This should solve the problem.

The catch is, your cart must have SSL Certificate installed.

Please post back if this solves your problem

30 Dec 2012, 1:56 PM
#64
i2ts avatar

i2ts

New Zenner

Join Date:
Jan 2009
Posts:
26
Plugin Contributions:
0

Re: National Australia Bank Internet Merchant Options

Please note, this is not an issue with the module. This issue is that both Zen Cart and the callback from the payment gateway need to be using SSL the same way.

8 Aug 2013, 6:43 AM
#65
aussiesapphire avatar

aussiesapphire

Zen Follower

Join Date:
Apr 2006
Posts:
114
Plugin Contributions:
0

Re: National Australia Bank Internet Merchant Options

Hello,

I have just encountered a problem with this mod. I installed it a few months ago and once I made the modification suggested above, it has been working perfectly.

However, 2 days ago, I found that payments were being correctly taken but orders not completed within zencart. The NAB payment receipt shows all the necessary info (shipping address, order details, etc) but I have no record of the order in zencart admin and items remain in the customers cart. It does not matter if customers are logged in normally before checking out or if they check out without account (I tried a test order both ways - transaction processed normally, went back to website but order did not complete in zencart).

This started happening very suddenly and I cannot work out what has changed.

I did have a glitch with my security certificate at the beginning of the month - I have automatic renewal so the bill was paid last month but new cert not installed properly. This was fixed very quickly by my host (within about an hour of the old cert expiring as luckily I noticed it quickly).

However, this issue happened (and was fixed) on 1st August and I have been receiving credit card orders normally until yesterday so not sure how this could be related.

I am not aware of anything at the bank or host that has changed and going by past experience, they will deny that anything has changed unless I ask extremely specific questions.

Can anyone help with this issue - I am still processing orders but it is a big pain to constantly check credit cards to make sure I am not missing orders.

Edited to add that PayPal and bank deposit orders are going through fine. It is just the NAB Transact orders that are not working properly.

Cheers
Leah Lane
www.aussiesapphire.com.au

8 Aug 2013, 6:57 AM
#66
rodg avatar

rodg

Deceased

Join Date:
Jan 2007
Location:
Australia
Posts:
6,263
Plugin Contributions:
4

Re: National Australia Bank Internet Merchant Options

aussiesapphire:

However, 2 days ago, I found that payments were being correctly taken but orders not completed within zencart.

It may be coincidence, but 2 days ago both the Westpac and NAB servers were offline for most of the day.

Cheers
Rod

9 Aug 2013, 2:02 AM
#67
i2ts avatar

i2ts

New Zenner

Join Date:
Jan 2009
Posts:
26
Plugin Contributions:
0

Re: National Australia Bank Internet Merchant Options

I sent you a PM for some details

aussiesapphire:

Hello,

I have just encountered a problem with this mod. I installed it a few months ago and once I made the modification suggested above, it has been working perfectly.

https://www.aussiesapphire.com.au

25 Sep 2013, 1:14 AM
#68
marmi01 avatar

marmi01

New Zenner

Join Date:
Apr 2009
Posts:
30
Plugin Contributions:
0

Re: National Australia Bank Internet Merchant Options

I'm also having this issue on my site - https://www.regimental-books.com.au.

Just migrated from one hosting company to a new one and now no orders are being created for payment by the NAB module. Payment is taken and we (and customer) get an email from NAB to confirm this but no order is generated by zencart and item remains in cart. Other payment methods work ok.

The strange thing is that when I also complete the purchase the last screen also shows the wrong product and a very old order number.

I've also tried these code changes:

$gateway_vars['return_link_url'] = zen_href_link(FILENAME_CHECKOUT_SUCCESS, '', 'SSL', true);
$gateway_vars['reply_link_url'] = zen_href_link(FILENAME_CHECKOUT_PROCESS, $query_string, 'SSL' );

And have SSL mode enabled.

The php version is: 5.3.26

Any assistance appreciated.

Mick

25 Sep 2013, 4:13 AM
#69
i2ts avatar

i2ts

New Zenner

Join Date:
Jan 2009
Posts:
26
Plugin Contributions:
0

Re: National Australia Bank Internet Merchant Options

This issue is not caused by the module.

Did you change the SSL certificate as part of the hosting company change.

It seems NAB Transact gateway have issues with certain SSL certificates when calling back the shopping cart with the payment results. I have seen this module work seamlessly in some websites when the SSL issued by well known Certificate Authority is used.

You have 3 options

  1. Call NAB Transact Support and tell them that their system is not supporting call back to the URLs without well-known SSL certificate - I am not sure 1. if they will admit to it 2. If they will be willing to fix it
  2. Buy an SSL Certificate from GeoTrust. I have no affiliation to GeoTrust one of the websites where the module is working without any issues use GeoTrust so I know NAB Transact support GeoTrust.
  3. You can put a temporary fix in the cart. But if you upgrade the cart this fix will be undone.
25 Sep 2013, 4:21 AM
#70
marmi01 avatar

marmi01

New Zenner

Join Date:
Apr 2009
Posts:
30
Plugin Contributions:
0

Re: National Australia Bank Internet Merchant Options

Thanks - and yes, we got a new SSL cert as part of the move.

Sounds like the Geotrust SSL cert could be the way to go.

25 Sep 2013, 4:38 AM
#71
i2ts avatar

i2ts

New Zenner

Join Date:
Jan 2009
Posts:
26
Plugin Contributions:
0

Re: National Australia Bank Internet Merchant Options

marmi01:

Thanks - and yes, we got a new SSL cert as part of the move.

Sounds like the Geotrust SSL cert could be the way to go.

The site where NAB Transact is working is https://www.cablesafe.com.au/onlinestore/index.php?main_page=login and it use QuickSSL® Premium certificate.

A disclaimer note, All the information provided in my last post is based on empirical evidence. I don't have any acknowledgement/confirmation from NAB Transact. So if it's still not working after GeoTrust cert please don't blame me. :unsure:

25 Sep 2013, 1:03 PM
#72
delia avatar

delia

Totally Zenned

Join Date:
May 2006
Location:
Gardiner, Maine
Posts:
2,383
Plugin Contributions:
7

Re: National Australia Bank Internet Merchant Options

babyvegas:

This is the profile of the person I used to fix my NAB Module to work with PHP5.3
https://www.odesk.com/users/~01c7d38f4706d745c0

Hopefully that link brings up his profile. I can't remember exactly what I paid but I think it was around $70?? I paid $10.50 per hour.

babyvegas, in the spirit of open source, it would really be nice if you supplied us with the changed mod. I would be glad to package it up and put it up in the plugins section if it truly is the fix that everyone is starting to need. It sounds like the higher version of php is part of this problem. It certainly isn't the brand of secure certificate. PM me if you are interested in helping out others. I think that it's possible you may even get reimbursed for what you paid to get it done.

24 Oct 2013, 12:22 PM
#73
i2ts avatar

i2ts

New Zenner

Join Date:
Jan 2009
Posts:
26
Plugin Contributions:
0

Re: National Australia Bank Internet Merchant Options

It's time to post to full low-down on what's causing the orders not to be created in zen cart when NAB Transact module is being used.

I will state this upfront. This issue has nothing to do with the NAB Transact module, rather I think it's due to a bug/issue at NAB Transact end.

Bit of background

  • NAB Transact payment gateway allows the shopping cart to nominate a URL which will be called when the payment is successful.
  • This URL is referred to as reply_link_url. The NAB Transact module instructs NAB Transact to call yourwebsite/index.php?main_page=checkout_process.... once the payment is complete (I.e. this is the reply_link_url)
  • When the customer successfully completes the payment NAB Transact gateway calls this URL and pass the payment results
  • This is a server-to-server call and doesn't rely on browser redirect
  • When this URL called zen cart creates the order. If the URL is not called or zen cart didn't recognise the URL being called the order won't be created
  • Originally zen cart didn't care if this URL is protected by SSL cert or not. So I wrote the module to use http://yourwebsite/index.php?main_page=checkout_process... as reply_link_url

The problem

  • I don't know which version but at a certain version a change was made in zen cart to ignore the calls the http://yourwebsite/index.php?main_page=checkout_process. It had to be https://yourwebsite/index.php?main_page=checkout_process
  • The specific piece of code which does this is line 53 of the /includes/init_includes/init_sessions.php (in zen cart version 1.50)

} elseif ( ($request_type == 'SSL') && isset($_GET[zen_session_name()]) ) {
[*]

- This is when the original problem of orders not being created started. Because the module was asking NAB Transact to  call **http**://yourwebsite/index.php?main_page=checkout_process but zen cart was ignoring the call because it's http and not secure https
- So I suggested (with some other forum users contribution as well) <http://www.zen-cart.com/showthread.php?50595-National-Australia-Bank-Internet-Merchant-Options&p=1174898#post1174898> so the module will instruct NAB Transact to call **https**://yourwebsite/index.php?main_page=checkout_process
- This fixed the problem for some websites but not all others. When the websites are using certain brand of SSL certificate the cart was successfully creating the orders but sites using certain brand of SSL certs were not creating the orders.
- Browsing the web server logs revealed a the sites where the orders are not being created are not receiving the call back from NAB Transact. This is may be due to an issue at NAB transact end, where NAB Transact may not be supporting SSL certs issued by all Certificate Authorities.


**The summary**
- zen cart ignores the call back to NON SSL URL since that would run the risk of fraud
- NAB Transact has issues calling the URL protected by certain SSL certs
- This is a catch 22 situation


**The solution(s)**
Ideally, NAB Transact must fix the problem at their end and support all SSL certificates. I won't hold my breath of NAB Transact fixing this any time soon.

or 

I have seen NAB Transact work with GeoTrust certificate in couple of sites. So buy and install a GeoTrust certificate.

or

Modify  line 53 of the /includes/init_includes/init_sessions.php to support no SSL calls. 
Change the line to 
```php
} elseif (/* ($request_type == 'SSL') &&*/ isset($_GET[zen_session_name()]) ) {

But I will STRONGLY recommend against this. You are making the changes to the cart itself (not NAB Transact module). As such if you update/upgrade the cart the change will be lost.

Please note, if you are going with the 3rd solution (i.e Modify line 53 of the /includes/init_includes/init_sessions.php) you also have to make sure NAB Transact module tells NAB Transact to call non-SSL callback URL.

This is done by changing

$gateway_vars['reply_link_url'] = zen_href_link(FILENAME_CHECKOUT_PROCESS, $query_string,  'SSL' );

to

$gateway_vars['reply_link_url'] = zen_href_link(FILENAME_CHECKOUT_PROCESS, $query_string, 'NONSSL'); 

Again, I strongly recommend against this.

28 Oct 2013, 12:03 PM
#74
i2ts avatar

i2ts

New Zenner

Join Date:
Jan 2009
Posts:
26
Plugin Contributions:
0

Re: National Australia Bank Internet Merchant Options

Please note, if you are going with the 3rd solution (i.e Modify line 53 of the /includes/init_includes/init_sessions.php) you also have to make sure NAB Transact module tells NAB Transact to call non-SSL callback URL.

This is done by changing

$gateway_vars['reply_link_url'] = zen_href_link(FILENAME_CHECKOUT_PROCESS, $query_string,  'SSL' );

to

$gateway_vars['reply_link_url'] = zen_href_link(FILENAME_CHECKOUT_PROCESS, $query_string, 'NONSSL'); 
30 Oct 2013, 4:12 AM
#75
ginar avatar

ginar

New Zenner

Join Date:
Feb 2006
Posts:
83
Plugin Contributions:
0

Re: National Australia Bank Internet Merchant Options

I am still having this issue and have tried all the fixes. Things work smoothly then they go *** up.

I installed a RapidSSL Certificate (Geotrust) in September 2013. It appears to be a hit or miss issue with nab and the last order that shows in admin with payment through nab is 3 October 2013, all other orders have gone through paypal and the order is being generated in admin. Nothing has been done to the website, no other mods added, and today I got a payment notification email from nab but the order was not generated in admin.

I went ordering and same thing happened to me... went through to nab, but the order was not generated. I went and checked the files:
nab_transact_hpp.php:
$gateway_vars = Array();

$gateway_vars['vendor_name'] = MODULE_PAYMENT_NAB_TRANSACT_HPP_CLIENT_ID;
$gateway_vars['print_zero_qty'] = 'false';
$gateway_vars['receipt_address'] = $order->customer['email_address'];
$gateway_vars['payment_reference'] = $_SESSION['nt_hpp_payment_reference'];
$gateway_vars['return_link_url'] = zen_href_link(FILENAME_CHECKOUT_SUCCESS, '', 'SSL', true);
$gateway_vars['reply_link_url'] = zen_href_link(FILENAME_CHECKOUT_PROCESS, $query_string,  'SSL' );

and

init_sessions.php
if (isset($_POST[zen_session_name()])) {
zen_session_id($_POST[zen_session_name()]);
} elseif ( ($request_type == 'SSL') && isset($_GET[zen_session_name()]) ) {
zen_session_id($_GET[zen_session_name()]);

I tried } elseif ( ($request_type == 'SSL') &&*/ isset($_GET[zen_session_name()]) ) { but the */ took the website offline.

I don't know what else to do.
In configure.php
// Use secure webserver for checkout procedure?
define('ENABLE_SSL', 'true');

Is there anything else I can try to stop this happening. It has happened before and the files were tweaked with the mentioned changes at that time to get it working again.

3 Nov 2013, 8:28 AM
#76
i2ts avatar

i2ts

New Zenner

Join Date:
Jan 2009
Posts:
26
Plugin Contributions:
0

Re: National Australia Bank Internet Merchant Options

The line in init_sessions.php must be

elseif ( /*($request_type == 'SSL') &&*/ isset($_GET[zen_session_name()]) ) {

You have missed the opening /*

$gateway_vars['reply_link_url'] = zen_href_link(FILENAME_CHECKOUT_PROCESS, $query_string, 'SSL'); 
``` must be changed to
```php
$gateway_vars['reply_link_url'] = zen_href_link(FILENAME_CHECKOUT_PROCESS, $query_string, 'NONSSL'); 

If you make these changes correctly you don't have to do anything to configure.php

PM me if you need help with these changes

24 Feb 2015, 11:01 PM
#77
aussiesapphire avatar

aussiesapphire

Zen Follower

Join Date:
Apr 2006
Posts:
114
Plugin Contributions:
0

Re: National Australia Bank Internet Merchant Options

Hello,

I currently run the NAB Transact mod on our website and have had to make those changes to get it working correctly. However, in the last week, NAB have advised a change to the system so wondering if this mod will still work after the change.

From the NAB Transact website:

*At 3pm on Thursday 5 March, we're upgrading NAB Transact to only support TLS (Transport Layer Security) 1.0 (or higher) across all API (Application programming interface) connections and websites. This includes all web-based interfaces such as Direct Post and Pay by Web, and internet browsers connected to a NAB Transact login.

SSL (Secure Sockets Layer) 3.0 will no longer be used.

This upgrade will enhance security on NAB Transact. *

Not a coder so really have no clue whether this upgrade will break credit card payments on my site. Would appreciate some advice on this.

cheers
Leah

25 Feb 2015, 12:31 AM
#78
i2ts avatar

i2ts

New Zenner

Join Date:
Jan 2009
Posts:
26
Plugin Contributions:
0

Re: National Australia Bank Internet Merchant Options

As the payment module uses the payment page hosted by NAB Transact itself this security update shouldn't affect the module.

Only possible issue you might face is customers who are using older version of the browsers (E.g. Internet Explorer 6) will not be able to get to the payment page.

Either way, I will strongly recommend all websites using the NAB Transact module to go through your shopping cart as a customer would after NAB Transact completes this update (I.e. after 3pm on Thursday 5 March) and see if you could get to the NAB Transact payment page without any issues.

25 Feb 2015, 1:21 AM
#79
aussiesapphire avatar

aussiesapphire

Zen Follower

Join Date:
Apr 2006
Posts:
114
Plugin Contributions:
0

Re: National Australia Bank Internet Merchant Options

i2ts:

As the payment module uses the payment page hosted by NAB Transact itself this security update shouldn't affect the module.

Only possible issue you might face is customers who are using older version of the browsers (E.g. Internet Explorer 6) will not be able to get to the payment page.

Either way, I will strongly recommend all websites using the NAB Transact module to go through your shopping cart as a customer would after NAB Transact completes this update (I.e. after 3pm on Thursday 5 March) and see if you could get to the NAB Transact payment page without any issues.

Thanks i2ts.

I was hoping that was the case but will definitely do a test order after the upgrade.

Had not thought of older browsers but it is another reason to encourage some customers to upgrade. Our demographic has a reasonably large proportion of older people who are not highly tech savvy so there may be some using older systems out there.

thanks.
Leah

25 Feb 2015, 1:29 PM
#80
delia avatar

delia

Totally Zenned

Join Date:
May 2006
Location:
Gardiner, Maine
Posts:
2,383
Plugin Contributions:
7

Re: National Australia Bank Internet Merchant Options

I think the answer is no. I looked at the code and what I have does not specify any ssl version. I believe I'm right that the module doesn't require an SSl cert on your own website? That is where the problem would be. Of course check afterwards but I don't think you have anything to worry about.