Results 1 to 2 of 2

Hybrid View

  1. #1
    Join Date
    Apr 2005
    Location
    Traralgon
    Posts
    56
    Plugin Contributions
    0

    Default eWay payment module (fix)

    Hi

    I've been having the problem with the eWay paymet module where orders above $1,000 get charged at $1. I've seen some others have had this problem but I couldn't find a solution on the forums here.

    So if you have this problem, here's the fix.

    Edit /includes/modules/payment/eway.php and find this line:

    Code:
    $my_totalamount = number_format($order->info['total'], 2) * 100;
    and change it to this:

    Code:
    $my_totalamount = $order->info['total'] * 100;
    Now the correct amount will be charged by eWay for orders above $1,000.

    regards,
    Reuben

  2. #2
    Join Date
    Apr 2005
    Location
    Traralgon
    Posts
    56
    Plugin Contributions
    0

    Default Re: eWay payment module (fix)

    Here's another fix.

    The eWay module contains a descriptive message for when a card is declined, but never uses the message. A customer with a declined card only sees the obtuse code response (eg: '05 DO NOT HONOUR')

    You can also display the descriptive message which makes it easier for the user to figure out what's happened. Eg:

    'Your credit card could not be authorized for this reason. Please correct any information and try again or contact us for further assistance.'

    Edit /includes/module/payment/eway.php and find this line:

    Code:
    zen_redirect(zen_href_link(FILENAME_CHECKOUT_PAYMENT, 'error_message=' . $transaction_error, 'SSL', true, false));
    change it to this:

    Code:
    zen_redirect(zen_href_link(FILENAME_CHECKOUT_PAYMENT, 'error_message=' . $transaction_error . ': ' . MODULE_PAYMENT_EWAY_TEXT_DECLINED_MESSAGE, 'SSL', true, false));
    You can also change the message to anything you like.
    See /includes/languages/english/modules/payment/eway.php

    regards,
    Reuben

 

 

Similar Threads

  1. eWAY UK Payment Module released
    By maclean_cherry in forum Addon Payment Modules
    Replies: 0
    Last Post: 20 Oct 2009, 11:46 PM
  2. Eway Payment Module - Australia
    By deetemple in forum Addon Payment Modules
    Replies: 0
    Last Post: 4 Jul 2006, 02:02 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