WordPress.org

Forums

eWAY Payment Gateway
[resolved] Sandbox test reveal 'Total Amount' higher than at Shop-Cart (rounds it up) (3 posts)

  1. websouth
    Member
    Posted 1 year ago #

    G'day, I have put through some test purchases with the eWay Sandbox from the new shopping cart website I am building for a customer.

    It's using WP e-Commerce Version 3.8.13.3 and the eWAY Payment Gateway Version 3.1.3 | By WebAware

    I am noticing on every transaction that in the WP e-Commerce 'Transaction Results' (and all previous pages) that
    You ordered these items:

    Name
    Price
    Quantity
    Item Total

    Woolen Throw $240.00 1 $240.00
    Total Shipping: $25.40
    Total Tax: $0.00
    Total: $265.40

    But when I look at the Sandbox report the amount reported there is $266.00.
    Naturally my concern is that if it is happening in the Sandbox, what will happen live?

    Since discovering this (and many tests) I contacted eWay to see if there was anything happening their end which could be causing it.
    They say not and to contact you

    The eWay Customer Care person did offer this up,
    "It sounds like the module is incorrectly using the PHP function 'ceiling' instead of 'round' to round the number up to a whole number. I would suggest contacting the module developer to have this investigated as this is certainly not by design. Your account will reflect exactly the amount sent to the gateway."

    Are you able to shed any light on this?
    If you need more background info please yell.

    By the way! Your Plugin is a big help, well done!

    Thanks in advance
    Peter Herriman

    http://wordpress.org/plugins/eway-payment-gateway/

  2. webaware
    Member
    Plugin Author

    Posted 1 year ago #

    G'day Peter,

    I need to document that for this plugin. In my Gravity Forms eWAY plugin, I say this in the FAQ:

    Why is the amount paid bigger than the form total when sandbox is enabled?
    When the sandbox is enabled, the payment amount is rounded up by default, because the eWAY sandbox server returns different error codes when the amount has cents. This can be a useful feature for testing how your website displays errors, but you normally don't want it when testing a payment form.

    I haven't added an option for turning that feature off for this plugin, but I'll get around to it one day. In the meantime, rest assured that rounding up only occurs for the sandbox.

    cheers,
    Ross

  3. websouth
    Member
    Posted 1 year ago #

    Thanks Ross, much appreciated.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • eWAY Payment Gateway
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic