Results 1 to 9 of 9
  1. #1
    Join Date
    Nov 2010
    Posts
    5
    Plugin Contributions
    0

    Default 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

    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.

  2. #2
    Join Date
    Jan 2004
    Posts
    66,445
    Plugin Contributions
    81

    Default Re: Visa/MasterCard - Confirmation E-Mail

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

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  3. #3
    Join Date
    Nov 2010
    Posts
    5
    Plugin Contributions
    0

    Default Re: Visa/MasterCard - Confirmation E-Mail

    Hi, thanks for your reply! The module is talking to netaxept/BBS.
    I have installed this module, and yes it is quite buggy

    http://www.zen-cart.no/nedlastinger/...axept-v09-beta

  4. #4
    Join Date
    Nov 2010
    Posts
    5
    Plugin Contributions
    0

    Default Re: Problems with netaxept/BBS addon

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

  5. #5
    Join Date
    Jan 2004
    Posts
    66,445
    Plugin Contributions
    81

    Default 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.
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  6. #6
    Join Date
    Nov 2010
    Posts
    5
    Plugin Contributions
    0

    Default 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!

  7. #7
    Join Date
    Jan 2004
    Posts
    66,445
    Plugin Contributions
    81

    Default 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?
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  8. #8
    Join Date
    Nov 2010
    Posts
    5
    Plugin Contributions
    0

    Default Re: Problems with netaxept/BBS addon

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

    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...

  9. #9
    Join Date
    Jan 2004
    Posts
    66,445
    Plugin Contributions
    81

    Default 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.
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

 

 

Similar Threads

  1. Problems with addon: Dynamic Drop Downs for Stock By Attribute
    By Dunk in forum All Other Contributions/Addons
    Replies: 56
    Last Post: 30 Apr 2014, 07:55 PM
  2. Problems with Recently Viewed Items addon
    By philip937 in forum All Other Contributions/Addons
    Replies: 33
    Last Post: 19 Aug 2012, 09:48 PM
  3. Replies: 2
    Last Post: 29 Dec 2008, 09:16 PM
  4. Paypal Recurring Billing Module installation problems with addon
    By SageSystems in forum Addon Payment Modules
    Replies: 0
    Last Post: 14 Dec 2008, 05:01 AM
  5. Problems with Back In Stock Notifications addon
    By dhanesh in forum All Other Contributions/Addons
    Replies: 0
    Last Post: 21 Aug 2008, 02:26 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg