Zen Cart Logo
Forums / Addon Payment Modules / Problems with netaxept/BBS addon

Problems with netaxept/BBS addon

Locked

Views: 2,478

Results 1 to 9 of 9
This thread is locked. New replies are disabled.
26 Nov 2010, 8:35 PM
#1
alcaline avatar

alcaline

New Zenner

Join Date:
Nov 2010
Posts:
5
Plugin Contributions:
0

Problems with netaxept/BBS addon

Hi! I am having a problem that I cant find a solution to, to I HOPE someone can help me before I pull my hair out :blink: :smile:

I have integrated a payment module to handle the Visa/MasterCard transaction. The problem is that this module is an old beta that no one has finished. But it is the only one available..

So when the customer press "Confirm Order" the customer is forwarded to the PSP`s page to enter cardnumber and so on..

The problem is that the customer receives an order confirmation as soon as he hits the "Confirm Order" button. This is a big problem because the order is not OK yet. We need to verify that the transaction is OK before we tell the customer that everything is ok. This is done by the PSP sending a confirmation back. That is when the customer should receive the e-mail.

Does anyone have any pointers? Any tips would be greatly appreciated.

26 Nov 2010, 8:43 PM
#2
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

Re: Problems with netaxept/BBS addon

Sounds like a bug in your payment module. Which addon are you using for that? Which gateway is it talking to?

27 Nov 2010, 10:15 AM
#4
alcaline avatar

alcaline

New Zenner

Join Date:
Nov 2010
Posts:
5
Plugin Contributions:
0

Re: Problems with netaxept/BBS addon

Anyone know what piece of code triggers the e-mail sent to the customer?

27 Nov 2010, 1:54 PM
#5
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

Re: Problems with netaxept/BBS addon

It has nothing to do with sending the email. The module itself is written wrong.
But, if you wish, the email is sent by the send_order_email() method of the order class.

27 Nov 2010, 2:42 PM
#6
alcaline avatar

alcaline

New Zenner

Join Date:
Nov 2010
Posts:
5
Plugin Contributions:
0

Re: Problems with netaxept/BBS addon

I see, sound like a big job to fix.. Do you know of any similar add-ons that work, so I can compare the files and maybe figure out what is wrong?

Your help is greatly appreciated!

27 Nov 2010, 2:55 PM
#7
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

Re: Problems with netaxept/BBS addon

Yes, it looks like a big job to fix. The module was written for another ecommerce system, and then had a few lines changed to attempt to make it work with Zen Cart, instead of properly writing it according to the Zen Cart framework.
By comparison, there are several built-in payment modules which work better, but probably won't work with your specific gateway, but are examples to follow to rewrite it. You might use the Authorize.net SIM module as a model. Alternatively there are numerous other payment module addons in the Free Addons download area.

Or, maybe there are people on the zen-cart.no site where you got the module who have had success with making their own changes to it?

27 Nov 2010, 8:13 PM
#8
alcaline avatar

alcaline

New Zenner

Join Date:
Nov 2010
Posts:
5
Plugin Contributions:
0

Re: Problems with netaxept/BBS addon

Hi, I have spent hours today looking trough PHP files comparing without getting anywhere :mellow:

No, there does not seem to be any activity regarding this module on the NO website...

The thing that bugs me is that everything is working.. I have completed over 20 transactions through the test account I have at BBS/NetExept. And I am redirected to the "...index.php?main_page=checkout_success" page when the payment is reported successful by the gateway.

The one and only issue is that the confirmation email to the customer is sent as soon at the button is pressed (before redirected to the gateway), and not when the "checkout_success" page is displayed as it should...
:frusty:

27 Nov 2010, 9:06 PM
#9
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

Re: Problems with netaxept/BBS addon

That's because the module does all its processing in an external script instead of in its before_process() method. It's left its before_process blank, thus telling Zen Cart to treat the order as completed and paid, and so the order then gets saved and emails sent, before it goes on to do any validations about the actual payment handling itself.
If it were properly written it wouldn't need any of the extra files ... it would only need the files in /includes/modules/payment and /includes/languages/english/modules/payment. But, as it stands now all the important stuff is external and thus causing you grief.