Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsStoreStoreGrandTotal == OrderTotal + TaxTotal + ShippingCostGrandTotal == OrderTotal + TaxTotal + ShippingCost
Previous
 
Next
New Post
8/8/2006 3:39 PM
 
I'm having trouble figuring out what's going on with the two Payment Providers included with the Store's source. Looking at PayPalPayment and AuthNetPayment's source, it seems that different information is being sent.

Firstly, we have these properties in the class OrderInfo:

    public decimal OrderTotal
    {
      get { return mOrderTotal; }
      set { mOrderTotal = value; }
    }

    /// <summary>
    /// The grand total summing the OrderTotal, TaxTotal, and ShippingCost
    /// </summary>
    public decimal GrandTotal
    {
        get { return mOrderTotal + mTaxTotal + mShippingCost; }
    }

Okay, so it's obvious here that OrderTotal is merely the total of the items, which can be confirmed  by looking at the stored procedure Store_Orders_GetOrder. GrandTotal is also, obviously, not deprecated code. It's actually used in both CustomerOrders.ascx and Checkout.ascx.

Here's where I become confused. Sending the OrderInfo to the PayPal Payment Provider results in this being sent to PayPal:

payPalURL += "&amount=" + HTTPPOSTEncode(orderInfo.OrderTotal.ToString("0.00"));
payPalURL += "&shipping=" + HTTPPOSTEncode(orderInfo.ShippingCost.ToString("0.00"));
payPalURL += "&tax=" + HTTPPOSTEncode(orderInfo.Tax.ToString("0.00"));

I'm assuming that PayPal sums up these three values by itself and charges the final amount to the user's account. This page seems to confirm that shipping and tax are not simply sent for informational purposes: https://www.paypal.com/IntegrationCenter/ic_std-variable-reference.html

However, the Authorize.Net Payment Provider only sends the following information:

NVCol.Add("x_Amount",                orderInfo.OrderTotal.ToString());

If shipping and tax aren't actually part of the OrderTotal, and they're not being passed to Authorize.Net for that third party to sum up on its own, then why isn't the GrandTotal being passed to Authorize.Net? Is there something I am missing here?
 
New Post
8/9/2006 9:38 AM
 

Nice catch.

This issued has been logged and will be fixed along with other issues in v1.1.0


Dwayne J. Baldwin
 
New Post
8/9/2006 11:28 AM
 
So, nobody else has noticed this bug before? Are you confirming that it's a bug simply by looking at my code, or did you check the source yourself? It's possible that I have missed or misunderstood something. I found this simply by looking at the source code, and have not tested it at all.

I checked the issue/enhancement log and didn't see anything concerning it, but I still find it hard to believe that I'm the first to notice this bug; the discrepancy (missing the shipping and tax whenever you use Authorize.Net) should have been fairly obvious during testing, if it's real.
 
New Post
8/11/2006 2:21 AM
 

I was aware of the problem and had already logged the issue and fixed the code. Considering that the tax and shipping providers where added after the gateway providers, it is certainly possible.

This is precisely what beta releases are for - to find and fix such bugs (obvious or otherwise).

Like I said, nice catch.


Dwayne J. Baldwin
 
New Post
8/13/2006 10:43 AM
 

Hi there

I am developing a TaxProvider specifically for South Africa. We have one national Value Added Tax (VAT) rate which might change sometime in the future.

I seem to have all the necessary items in place to have it working in development. However now I need to deploy it to my production machine. My big issue is with the store.config file and how to set up my Tax Provider to work with the store.

I am using VS2005

Can you help?

Darrel Schreyer

 
Previous
 
Next
HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsStoreStoreGrandTotal == OrderTotal + TaxTotal + ShippingCostGrandTotal == OrderTotal + TaxTotal + ShippingCost


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out