Jump to content


Corporate Sponsors


Latest News: (loading..)

* * * * - 1 votes

[CONTRIBUTION] Nochex APC Payment Module


322 replies to this topic

#261 nat8100

  • Community Member
  • 202 posts
  • Real Name:Natalie

Posted 13 June 2006, 10:04

Has anyone used CCGV with Nochex APC?

#262 Yuck

  • Community Member
  • 173 posts
  • Real Name:Barry

Posted 17 July 2006, 15:57

Hi, I'm a little confused with the install instructions so thought best to ask before making a mess of stuff. The file checkout_success.php requires some changes, most done. There is a block of code to add

Quote

paste this block of code BEFORE the $breadcrumb
My question is which $breadcrumb? The one just edited? ie:
$breadcrumb->add($NAVBAR_TITLE_2);
or the one above it? ie:
$breadcrumb->add(NAVBAR_TITLE_1);

Any guidance much appreciated, Thanks.

#263 Yuck

  • Community Member
  • 173 posts
  • Real Name:Barry

Posted 17 July 2006, 18:23

Fixed, but off to install PayPal now.......... :'(

:)

#264 go2pub

  • Community Member
  • 109 posts
  • Real Name:Nigel
  • Gender:Male
  • Location:Enniskillen, N. Ireland

Posted 26 July 2006, 12:05

Installed this great module and it's working great, the only small problem I have is that when I install it in admin, my paypal payment option disappears from the checkout screen, then if I uninstall nochex, paypal re-appears. Anyone any suggestions as to what might be happening.

Thanks

#265 alex22alex

  • Community Member
  • 24 posts
  • Real Name:Alex Mcmillan

Posted 28 July 2006, 00:11

Does anyone know if this contribution works with Creloaded 6.2 ?
Thanks in advance Alex

#266 Jamsy

  • Community Member
  • 64 posts
  • Real Name:James Robinson
  • Location:UK

Posted 29 September 2006, 00:14

Hi all

I have installed this on a CREloaded version but am getting the following error at checkout:

1054 - Unknown column 'popt.products_options_name' in 'field list'

select popt.products_options_name, poval.products_options_values_name, pa.options_values_price, pa.price_prefix, pad.products_attributes_maxdays, pad.products_attributes_maxcount , pad.products_attributes_filename from products_options popt, products_options_values poval, products_attributes pa left join products_attributes_download pad on pa.products_attributes_id=pad.products_attributes_id where pa.products_id = '296{1}3{2}2' and pa.options_id = '2' and pa.options_id = popt.products_options_id and pa.options_values_id = '2' and pa.options_values_id = poval.products_options_values_id and popt.language_id = '1' and poval.language_id = '1'

[TEP STOP]

Any help would be appreciated.

Cheers

#267 ShadowMoses

  • Community Member
  • 15 posts
  • Real Name:Olly

Posted 05 October 2006, 10:20

Hi, i'm new to both Nochex and this contribution. It's installed and seems to be working fine but i just have one query: On the Nochex site i can configure a "Payments Page" and make it look just like my site but this contribution seems to take me to a different page, is there a way to make it go to the payment page i set up via Nochex?

Thanks.

#268 alex22alex

  • Community Member
  • 24 posts
  • Real Name:Alex Mcmillan

Posted 05 October 2006, 10:54

Hello All,
I am wondering exactly the same. I standard nochex customer and i used the nochex module that comes with creloaded ( Is this the same module ? ). It directed to the Nochex branded payment page.

However now i have a merchant account. I have set my payment page up but the module still shows the same nochex branded payment page. Any ideas or help ?

Thanks Alex

#269 ShadowMoses

  • Community Member
  • 15 posts
  • Real Name:Olly

Posted 06 October 2006, 07:56

Someone very kindly helped me on the nochex forums, i haven't tested it 100% but this at least directs to my custom payment page:

[quote]for the standard nochex payment module on oscommerce edit the nochex.php in folder includes/modules/payment

on line 32 change to $this->form_action_url = 'https://secure.nochex.com/';

for the apc version edit nochex_checkout.php in the catalog folder

on line 239 change to
$formlink = '<form name="checkout" action="https://secure.nochex.com/" method=post>';[/quote]

#270 JonoB

  • Community Member
  • 159 posts
  • Real Name:Jon

Posted 06 December 2006, 22:50

Hi, just wondering if anyone has a more elegant or better working cure for the cart not emptying when returning from the Nochex site back to OsCommerce?

I have tried the $cart->reset(TRUE); method as per this thread, but this only resets the cart if the user refreshes the browser. It does NOT empty automatically.

Any ideas greatly appreciated.

#271 slick_uk

  • Community Member
  • 2 posts
  • Real Name:Simon

Posted 15 December 2006, 17:06

Dear All,

a third party company has developed a new Nochex Module for OSC, that makes use of the new Nochex Payments Pages, in addition to the Nochex APC. The Module works for both Seller & Merchant Accounts, however Merchant Account holders have greater functionality, such as Customisable Payments Pages, Partial Refunds and the ability to pass more parameters in from OSC.

Any comments, good or bad, please list them here and we'll get them addressed.

Thanks

S

http://www.oscommerce.com/community/contributions,2280

#272 Get-Wireless 2

  • Community Member
  • 321 posts
  • Real Name:Shaun
  • Location:U.K

Posted 29 December 2006, 22:04

View Postnochex_uk, on Dec 15 2006, 05:06 PM, said:

Any comments, good or bad, please list them here and we'll get them addressed.


Hi,

I have just installed this on my test site, seemed pretty straight forward, However when I clicked install in the admin section to install the module I got the following error

Warning: Cannot modify header information - headers already sent by (output started at /home/getwi/public_html/dev/admin/includes/languages/english.php:327) in /home/getwi/public_html/dev/admin/includes/functions/general.php on line 22

if I then click back the module appears to be installed.

Its also the same if I click the remove button.

I also get the same error when updating the details for the module

Edited by Get-Wireless 2, 29 December 2006, 22:07.


#273 Get-Wireless 2

  • Community Member
  • 321 posts
  • Real Name:Shaun
  • Location:U.K

Posted 29 December 2006, 22:35

I seem to have solved the above problem in that I had sum extra carrage returns after the closing ?>

I now have the following problem

Have left the module set to test and when I click to pay I get transfered to nochex. I am then hit with the following error

To perform a test transaction your account must be Xtra enabled

According to nochex website a seller account is xtra enabed

#274 Get-Wireless 2

  • Community Member
  • 321 posts
  • Real Name:Shaun
  • Location:U.K

Posted 12 January 2007, 14:34

Nochex now seem to have xtra enabled my account and i can easily go through making a test transaction all the way past nochex and returned to my site.

Problem I get now when I click on the Nochex APC in my admin section then click transactions I get the following errors

Warning: session_start() [function.session-start]: The session id contains invalid characters, valid characters are only a-z, A-Z and 0-9 in /home/getwi/public_html/dev/admin/includes/functions/sessions.php on line 67

Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /home/getwi/public_html/dev/admin/includes/functions/sessions.php:67) in /home/getwi/public_html/dev/admin/includes/functions/sessions.php on line 67

Does anybody have a clue as to were I should be looking to fix this ?

#275 colin160174

  • Community Member
  • 49 posts
  • Real Name:Colin G.

Posted 14 January 2007, 00:00

Installed the contrib, run a test payment, and at the point of confirming payment, I got the following-

1146 - Table 'mysite_osc1.TABLE_NOCHEX_APC_TXN' doesn't exist

select o.orders_status,p.* from orders o LEFT JOIN TABLE_NOCHEX_APC_TXN p on p.nc_order_id = o.orders_id AND o.customers_id = '6' order by o.date_purchased desc limit 1

[TEP STOP]


There is no table called TABLE_NOCHEX_APC_TXN mentioned in the install so what does this mean?

Thanks

Colin G.

#276 colin160174

  • Community Member
  • 49 posts
  • Real Name:Colin G.

Posted 14 January 2007, 00:34

View Postcolin160174, on Jan 14 2007, 12:00 AM, said:

Installed the contrib, run a test payment, and at the point of confirming payment, I got the following-

1146 - Table 'mysite_osc1.TABLE_NOCHEX_APC_TXN' doesn't exist

select o.orders_status,p.* from orders o LEFT JOIN TABLE_NOCHEX_APC_TXN p on p.nc_order_id = o.orders_id AND o.customers_id = '6' order by o.date_purchased desc limit 1

[TEP STOP]
There is no table called TABLE_NOCHEX_APC_TXN mentioned in the install so what does this mean?

Thanks

Colin G.

It would appear this error is related to some code on the checkout_success page that had to be edited, have I inserted the code in the incorrect place, could someone check for me. I have listed it below - install said to "paste this block of code BEFORE the $breadcrumb"


$nochex_query = tep_db_query("select o.orders_status,p.* from " . TABLE_ORDERS . " o LEFT JOIN " . TABLE_NOCHEX_APC_TXN . " p on p.nc_order_id = o.orders_id AND o.customers_id = '" . (int)$customer_id . "' order by o.date_purchased desc limit 1");
$nochex_apc = tep_db_fetch_array($nochex_query);

if ($nochex_apc['nochex_reponse']=='AUTHORISED') {
$NAVBAR_TITLE_2 = NOCHEX_NAVBAR_TITLE_2_OK;
$HEADING_TITLE = NOCHEX_HEADING_TITLE_OK;
$TEXT_SUCCESS = NOCHEX_TEXT_SUCCESS_OK;
$cart->reset(TRUE);
} else if ($nochex_apc['nochex_response']=='DECLINED') {
$NAVBAR_TITLE_2 = NOCHEX_NAVBAR_TITLE_2_FAILED;
$HEADING_TITLE = NOCHEX_HEADING_TITLE_FAILED;
$TEXT_SUCCESS = NOCHEX_TEXT_SUCCESS_FAILED;
} else if ($nochex_apc['orders_status']==50000) {
$NAVBAR_TITLE_2 = NOCHEX_NAVBAR_TITLE_2_PENDING;
$HEADING_TITLE = NOCHEX_HEADING_TITLE_PENDING;
$TEXT_SUCCESS = NOCHEX_TEXT_SUCCESS_PENDING;
} else {
$NAVBAR_TITLE_2 = NAVBAR_TITLE_2;
$HEADING_TITLE = HEADING_TITLE;
$TEXT_SUCCESS = TEXT_SUCCESS;
};

$breadcrumb->add(NAVBAR_TITLE_1);
$breadcrumb->add($NAVBAR_TITLE_2);


Did I fluff it up?

Thanks

Colin G.

#277 robburne

  • Community Member
  • 62 posts
  • Real Name:Rob

Posted 26 January 2007, 17:41

Hi,

I have just read the entire 14 pages of this thread and tried all fixes without success. I have the Nochex APC configured on my Windows Apache server. I do not have a SSL, but I do have curl enabled:

CURL support enabled
CURL Information libcurl/7.14.0 OpenSSL/0.9.7i zlib/1.2.3


I have made a few real live payments to myself and I am returned to my site so all appears ok on that front.
However thses are the isses I am trying to address:

1. Stock levels are not adjusted

2. Cart is not emptied

3. Within the admin panel on the left hand side at the bottom of the list below tools I have an option listed as "BOX_HEADING_NOCHEXAPC_ADMIN" See the screen shot below:

[img]http://www.robburne.co.uk/admin.jpg[/img]

4. I am receiving the blank emails:

Debug code
NOCHEX VALIDITY RESPONSE: NO RESPONSE

5. When I make a payment in test mode I am not taken back to my site, only when I make a live payment.

Any feedback and suggestion would be appreciated. I in one of the replies that there were some issues with Windows servers and the bug had been fixed. I assume the latest version addresses these issue (0.51).

Thanks,

Rob.

Edited by robburne, 26 January 2007, 17:42.


#278 robburne

  • Community Member
  • 62 posts
  • Real Name:Rob

Posted 26 January 2007, 18:38

Please disregard point 3 above (left hand menu text) as I have fixed this. Now reads as Nochex ACP.

Thanks,

Rob.

#279 robburne

  • Community Member
  • 62 posts
  • Real Name:Rob

Posted 26 January 2007, 19:28

Ok now fixed points 2 and 3.

Just need to figure out why stock is not being adjusted and blank email.

Thanks in advance,

Rob.

#280 robburne

  • Community Member
  • 62 posts
  • Real Name:Rob

Posted 26 January 2007, 20:26

Wow it gets better, emails are now working perfectly and the stock is adjusting.

So the final issue is for test bookings - once complete I am not taken to the confirmation page of my site, just a Nochex confirmation page. Not really an issue as live payments do take me back to my site.

Can anyone forsee a problem here as I am happy to let it go if all else works.

Thanks for listening and let me air my thoughts!

Rob.