in

dashCommerce

An ASP.NET Open Source e-Commerce Application

Problem In Order Process....Please Help me

Last post 11-05-2008 12:09 PM by admin. 7 replies.
Page 1 of 1 (8 items)
Sort Posts: Previous Next
  • 03-26-2008 2:49 AM

    Problem In Order Process....Please Help me

    I installed dashcommerce 3.0 in my computer. I configured payment provider, shipping provider, tax calculation etc.I add product in cart. But in check out page when I click to the "Process Order" then an exception occurred

    catch(Exception ex){
            Logger.Error(typeof(checkout).Name + ".btnProcessOrder_Click", ex);
        -> throw;
          }
        }

    Log Message:
    checkout.btnProcessOrder_Click

    System.NullReferenceException: Object reference not set to an instance of an object.
       at MettleSystems.dashCommerce.Store.Services.PaymentService.PayPal.PayPalService.DoExpressCheckout(Order order, Boolean authorizeOnly) in D:\Shuvo\dashcom\Store\Services\PaymentService\PayPal\PayPalService.cs:line 456
       at MettleSystems.dashCommerce.Store.Services.PaymentService.PayPalProPaymentProvider.DoExpressCheckout(Order order, Boolean authorizeOnly) in D:\Shuvo\dashcom\Store\Services\PaymentService\PayPalProPaymentProvider.cs:line 211
       at MettleSystems.dashCommerce.Store.Services.PaymentService.PaymentService.DoExpressCheckout(Order order, Boolean authorizeOnly) in D:\Shuvo\dashcom\Store\Services\PaymentService\PaymentService.cs:line 247
       at MettleSystems.dashCommerce.Store.OrderController.DoExpressCheckout(Order order, Boolean authorizeOnly, String userName) in D:\Shuvo\dashcom\Store\Controllers\OrderController.cs:line 461
       at MettleSystems.dashCommerce.Web.checkout.btnProcessOrder_Click(Object sender, EventArgs e) in D:\Shuvo\dashcom\Web\checkout.aspx.cs:line 528

    I used 

    Payment Method : VISA

    CC Number: 4978368392614864 

    CC Security No: 027 

     Expiration 1, 2009

     I configured payment pro provider with API username, password and signature. I am confused how to fix the problem. Is it for the Credit card no ? I also used the test card no of pay pal doc with security No 123(I am not sure about their security no).But same thing occurred. Anybody please help me…. I am totally stack with that problem.

    Thanks and regards

    Kamanashish Roy Shuvo

  • 03-28-2008 9:50 PM In reply to

    • yocuteem
    • Top 10 Contributor
    • Joined on 03-17-2008
    • Philadelphia Area
    • Posts 57

    Re: Problem In Order Process....Please Help me

    That error simply means that you are trying to use a variable before it's been initialized (I know that is stating the obvious).  All you need to do is setup for debugging and you'll be able to see exactly where the error is occurring and that will help you figure things out.  Open your project in Visual Studio, select  Debug - Exceptions.  Then click on the checkbox under "Thrown" for the "Common Language Runtime Exceptions", then press F5 to run your site.  Then run through the steps to reproduce your error.  The IDE will now break in the source code on the exact line of code that is failing, not just at the point that the exception is caught.  I know this doesn't exactly answer your question, but at least you'll be able to figure out which line is failing and go on from there.  Let me know if you need more help.

    Tim

    Tim
  • 08-20-2008 5:10 AM In reply to

    • adisao
    • Top 500 Contributor
    • Joined on 05-03-2008
    • Posts 2

    Re: Problem In Order Process....Please Help me

    Did you ever get this figured out?  I have the exact problem.

  • 08-20-2008 1:34 PM In reply to

    Re: Problem In Order Process....Please Help me

     Did you seup the payment provider in the admin section

    Find a bug? Create a Work Item for a fast response.. Want to help? Create a patch for us!
  • 11-05-2008 10:11 AM In reply to

    • judef
    • Top 150 Contributor
    • Joined on 10-15-2008
    • Posts 7

    Re: Problem In Order Process....Please Help me

     Hello everyone,

                        Please help me.Even i am having the same problem. I have set up shipping, tax and payment providers(paypal pro). Here are the exception details.I am struggling really hard to get out of it, can you help me out.

    System.NullReferenceException was caught
      Message="Object reference not set to an instance of an object."
      Source="MettleSystems.dashCommerce.Store"
      StackTrace:
           at MettleSystems.dashCommerce.Store.Services.PaymentService.PayPal.PayPalService.DoExpressCheckout(Order order, Boolean authorizeOnly) in c:\inetpub\wwwroot\final\store\services\paymentservice\paypal\paypalservice.cs:line 459
           at MettleSystems.dashCommerce.Store.Services.PaymentService.PayPalProPaymentProvider.DoExpressCheckout(Order order, Boolean authorizeOnly) in C:\Inetpub\wwwroot\Final\Store\Services\PaymentService\PayPalProPaymentProvider.cs:line 212
           at MettleSystems.dashCommerce.Store.Services.PaymentService.PaymentService.DoExpressCheckout(Order order, Boolean authorizeOnly) in C:\Inetpub\wwwroot\Final\Store\Services\PaymentService\PaymentService.cs:line 254
           at MettleSystems.dashCommerce.Store.OrderController.DoExpressCheckout(Order order, Boolean authorizeOnly, String userName) in C:\Inetpub\wwwroot\Final\Store\Controllers\OrderController.cs:line 560
      InnerException:
     

    While debugging i noticed i am getting this error in PAYPAL SERVICE.CS  at line 

     expressCheckoutPaymentRequestDetails.Token = order.ExtendedProperties[PAYPAL_TOKEN].ToString();

    when the extended properties are returned  by this method in

    ORDER.CS

    public ExtendedProperties ExtendedProperties {
          get {
            if(_extendedProperties == null) {
              if(!string.IsNullOrEmpty(this.AdditionalProperties)) {
                _extendedProperties = new ExtendedProperties().NewFromXml(this.AdditionalProperties) as ExtendedProperties;
              }
              else {
                _extendedProperties = new ExtendedProperties();
              }
            }
            return _extendedProperties;
          }
        }

    Any suggestions would be greatly appreciated. I am working on my local mahine. Is Trustlevel a problem?

    Thanks in advance

    Judef

         

  • 11-05-2008 10:23 AM In reply to

    • yocuteem
    • Top 10 Contributor
    • Joined on 03-17-2008
    • Philadelphia Area
    • Posts 57

    Re: Problem In Order Process....Please Help me

    If you are getting the error on this line:

    order.ExtendedProperties[PAYPAL_TOKEN].ToString();

    Then the PAYPAL_TOKEN does not exist in the order's ExtendedProperties collection. Are you sure that your configuration on the PayPal side of things is correct?  Also, you might want to find out where in the code the token gets set and see why it is not getting set.  Do you use the IPNHandler or the PDTHandler?

     Tim

    Tim
  • 11-05-2008 10:40 AM In reply to

    • judef
    • Top 150 Contributor
    • Joined on 10-15-2008
    • Posts 7

    Re: Problem In Order Process....Please Help me

    Thankyou for your reply Tim, I am using PDT Handler. Any suggestions with that would be of great help.

    Thanks in advance

    judef

  • 11-05-2008 12:09 PM In reply to

    Re: Problem In Order Process....Please Help me

    I'd just like to clarify that when using PayPal you need to have both the PDT and IPN configured. It is not an option to enable 1 and not the other. If you do this, you will almost certainly end up with orders that are not properly processed. 

    --
    Support dashCommerce - Buy Our Stuff!!


    Find a bug? Create a Work Item for a fast response.. Want to help? Create a patch for us! Documentation? Help us write some!
Page 1 of 1 (8 items)