Jump to content

[Gateways] Direct Credit Gateway Mod


Guest billmc

Recommended Posts

Guest billmc

File Name :: Direct Credit Gateway Mod

Author :: billmc

Category :: Gateways

Description

Also known as Bank Transfer. A mod to provide the customer with details so that payment to the shop's bank a/c number can be made. Written for the New Zealand banking system but the language files can be edited to suit.(A rewrite of the postal gateway)

View File

Link to comment
Share on other sites

This works well. For a novice this was easy to add, the only error which occurred was my fault which was quickly rectified, and is exactly what was needed.

Thanks for making this so easy.

Regards,

Fi ;)

Link to comment
Share on other sites

Guest AJNewtech

Great mod :rolly:

This was my first attempt at adjusting / modifying anything

We are based in Australia , therefore needed to change some text. Works perfectly

Thankyou for your help Bill

greatly appreciated.

:D:D:D :D

Link to comment
Share on other sites

  • 3 weeks later...
  • 5 weeks later...
Guest julai

hi, i get this error in confirmed_dc.php when i buy an item

Warning: Cannot modify header information - headers already sent by (output started at /home/fashionc/public_html/confirmed_dc.php:2) in /home/fashionc/public_html/confirmed_dc.php on line 30

Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at /home/fashionc/public_html/confirmed_dc.php:2) in /home/fashionc/public_html/confirmed_dc.php on line 32

in this lines i view:

30 setcookie("ShoppingCart");

31 session_start();

32 include("admin/config.php");

33 include( "admin/settings.inc.php");

34 if($mail!=="Y")

35 {

36 include( "header.inc.php");

37 echo"<tr><td valign=\"top\">";

38 }

pls i need help

ummm.. also i receive other error:

if a customer order por example 2 product en diferents order, the admin, only can view the last, or if 2 customer orders i only view the last because the no order is the same :)

Link to comment
Share on other sites

Guest billmc

Hi julai,

Can you do a test purchase using postal gateway and let us know the results. The logic of direct_credit is identical to postal but creates a different form and uses a diferent version of confirmed.php

billmc

Link to comment
Share on other sites

  • 4 weeks later...

Hi there,

I keep getting the following error

'document.SecureForm is null or not an object'

This is the part that is highlighted in yellow in the debugger

onLoad='document.SecureForm.submit();'>

<form action ="search.php" method="post">

Can you help I think there's something wrong with the secure.php file but not sure what? The mail order option and all the others work fine.

Regards

Lorraine

Link to comment
Share on other sites

Guest billmc

hi needful,

I used to get that error and included a [continue] button instead of autosubmit as a workaround.

booker posted a fix which worked. (to do with removing a tagging out a javascript line)

the problem line is in header.inc.php not secure.php

// used for secure.php to autosubmit form data



if($url=="secure"){

echo"onLoad='document.SecureForm.submit();'";

}



?>>

<form action ="search.php" method="post">

hth

billmc

Edited by billmc
Link to comment
Share on other sites

Hi Again,

I'm totally lost here, I have tried searching for Booker's Fix but cannot find it, I'm definately getting out of my depth here. I would like to use your Mod as it is something NZ'ers are comfortable with.

Regards

Lorraine

Link to comment
Share on other sites

  • 2 weeks later...
Guest rdlean

Well i jsut tried this mod, and edited everything as i thought it needed to be done, and now when you select to 'check out' it sits on "Building order and transferring to checkout..." screen and doesnt go anywhere! :rolleyes:

Link to comment
Share on other sites

  • 4 weeks later...
Guest twisted

TO anybody using this mod......

This mod works as is from the installation instructions...except for one thing.

It while create new orders with the same order numbers if you place multiple orders while still logged in on the same session.

bill forgot an important piece of code that unregisters the session after the order process is complete.

Using bills instructions exactly as stated, the only change you need to make is to add the following code IMMEDIATELY before the last ?> in confirmed_dc.php

// attempted worldpay and percieved authorize.net duplicate order_id's problem

if(($gateway=="Authorize")||($gateway=="WorldPay"))

        {

                session_destroy();

        }

else{

                session_unregister("cart_order_id");

        }

Link to comment
Share on other sites

v3 already has this mod included :lol: Under the "postal order form" gateway.

Configure the settings to show your bank account details from the cc3 admin section.

Link to comment
Share on other sites

  • 1 month later...

v3 already has this mod included ;) Under the "postal order form" gateway.

Configure the settings to show your bank account details from the cc3 admin section.

Hi,

I can`t find the "Postal order Form" in the gateways.

Link to comment
Share on other sites

v3 already has this mod included ;) Under the "postal order form" gateway.

Configure the settings to show your bank account details from the cc3 admin section.

Hi,

I can`t find the "Postal order Form" in the gateways.

Are you running v2 or v3?

Link to comment
Share on other sites

×
×
  • Create New...