Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • fontanka16 24 posts 73 karma points
    Oct 24, 2013 @ 10:21
    fontanka16
    0

    http 500 when calling base/teacommerce/GeneratePaymentForm.aspx

    Hi!

    I just upgraded to Umbraco 6.1.3 and simultaneously upgraded teacommerce from 1.4.2.4 to 1.4.4.5

     

    Everything works fine (after replacing /tcbase with /base) except for calling goToPayment() (base/teacommerce/GeneratePaymentForm.aspx). It throws an 500. What might be wrong? 

    Below is the order object. As you can see there is a payment method attached to it, so it should not be that.

     

    {
        "Id": 25916,
        "Country": {
            "Id": 404,
            "Name": "Taiwan"
        },
        "CreatedDate": "/Date(1382601784433+0200)/",
        "Currency": {
            "CultureName": "sv-SE",
            "ISOCode": "SEK",
            "Id": 4
        },
        "IsOrder": false,
        "MemberId": null,
        "ModifiedDate": "/Date(1382601834040+0200)/",
        "Name": "525-25916",
        "OrderDate": null,
        "OrderLines": [
            {
                "Id": 1464,
                "IsUnique": false,
                "NodeId": 4140,
                "Properties": [
                    {
                        "Id": 6869,
                        "Alias": "nodeName",
                        "Value": "Construction, acquisition et communication"
                    },
                    {
                        "Id": 6870,
                        "Alias": "productName",
                        "Value": "Construction, acquisition et communication"
                    },
                    {
                        "Id": 6871,
                        "Alias": "productNumber",
                        "Value": "9185445495"
                    },
                    {
                        "Id": 6872,
                        "Alias": "hasPrintFile",
                        "Value": "1"
                    },
                    {
                        "Id": 6873,
                        "Alias": "author",
                        "Value": "Engwall, Gunnel, 1942-"
                    },
                    {
                        "Id": 6874,
                        "Alias": "dateStamp",
                        "Value": "1382601815085"
                    }
                ],
                "Quantity": 1,
                "TotalPrice": 108,
                "TotalPriceFormatted": "108,00 kr",
                "TotalPriceFormattedNoSymbol": "108,00",
                "TotalPriceWithoutVAT": 108,
                "TotalPriceWithoutVATFormatted": "108,00 kr",
                "TotalPriceWithoutVATFormattedNoSymbol": "108,00",
                "TotalVAT": 0,
                "TotalVATFormatted": "0,00 kr",
                "TotalVATFormattedNoSymbol": "0,00",
                "UnitPrice": 108,
                "UnitPriceFormatted": "108,00 kr",
                "UnitPriceFormattedNoSymbol": "108,00",
                "UnitPriceWithoutVAT": 108,
                "UnitPriceWithoutVATFormatted": "108,00 kr",
                "UnitPriceWithoutVATFormattedNoSymbol": "108,00",
                "UnitVAT": 0,
                "UnitVATFormatted": "0,00 kr",
                "UnitVATFormattedNoSymbol": "0,00",
                "VAT": 0,
                "VATPercent": "0"
            }
        ],
        "OrderStatus": {
            "DictionaryItemName": "",
            "Id": 1,
            "Name": "New"
        },
        "Payment": {
            "DictionaryItemName": "",
            "Fee": 0,
            "FeeFormatted": "0,00 kr",
            "FeeFormattedNoSymbol": "0,00",
            "FeeVAT": 0,
            "FeeVATFormatted": "0,00 kr",
            "FeeVATFormattedNoSymbol": "0,00",
            "FeeWithoutVAT": 0,
            "FeeWithoutVATFormatted": "0,00 kr",
            "FeeWithoutVATFormattedNoSymbol": "0,00",
            "Id": 4,
            "MediaId": null,
            "Name": "DIBS bokköp"
        },
        "PaymentStatus": null,
        "Properties": [
            {
                "Id": 6610,
                "Alias": "company",
                "Value": "t"
            },
            {
                "Id": 6611,
                "Alias": "fullName",
                "Value": "t"
            },
            {
                "Id": 6612,
                "Alias": "streetAddress",
                "Value": "t"
            },
            {
                "Id": 6613,
                "Alias": "zipCode",
                "Value": "t"
            },
            {
                "Id": 6614,
                "Alias": "city",
                "Value": "t"
            },
            {
                "Id": 6615,
                "Alias": "phone",
                "Value": "t"
            },
            {
                "Id": 6616,
                "Alias": "email",
                "Value": "t"
            },
            {
                "Id": 6617,
                "Alias": "comments",
                "Value": "t"
            },
            {
                "Id": 6618,
                "Alias": "shipping_fullName",
                "Value": "t"
            },
            {
                "Id": 6619,
                "Alias": "shipping_streetAddress",
                "Value": "t"
            },
            {
                "Id": 6620,
                "Alias": "shipping_zipCode",
                "Value": "t"
            },
            {
                "Id": 6621,
                "Alias": "shipping_city",
                "Value": "t"
            },
            {
                "Id": 6622,
                "Alias": "vatNumber",
                "Value": "t"
            }
        ],
        "Shipping": {
            "DictionaryItemName": "",
            "Fee": 170,
            "FeeFormatted": "170,00 kr",
            "FeeFormattedNoSymbol": "170,00",
            "FeeVAT": 0,
            "FeeVATFormatted": "0,00 kr",
            "FeeVATFormattedNoSymbol": "0,00",
            "FeeWithoutVAT": 170,
            "FeeWithoutVATFormatted": "170,00 kr",
            "FeeWithoutVATFormattedNoSymbol": "170,00",
            "Id": 2,
            "MediaId": null,
            "Name": "Posten"
        },
        "TotalPrice": 278,
        "TotalPriceFormatted": "278,00 kr",
        "TotalPriceFormattedNoSymbol": "278,00",
        "TotalPriceWithoutFees": 108,
        "TotalPriceWithoutFeesFormatted": "108,00 kr",
        "TotalPriceWithoutFeesFormattedNoSymbol": "108,00",
        "TotalPriceWithoutFeesWithoutVAT": 108,
        "TotalPriceWithoutFeesWithoutVATFormatted": "108,00 kr",
        "TotalPriceWithoutFeesWithoutVATFormattedNoSymbol": "108,00",
        "TotalPriceWithoutVAT": 278,
        "TotalPriceWithoutVATFormatted": "278,00 kr",
        "TotalPriceWithoutVATFormattedNoSymbol": "278,00",
        "TotalQuantity": 1,
        "TotalVAT": 0,
        "TotalVATFormatted": "0,00 kr",
        "TotalVATFormattedNoSymbol": "0,00",
        "TotalVATWithoutFees": 0,
        "TotalVATWithoutFeesFormatted": "0,00 kr",
        "TotalVATWithoutFeesFormattedNoSymbol": "0,00",
        "Transaction": {
            "PaymentAmount": null,
            "PaymentAmountFormatted": "0,00 kr",
            "PaymentAmountFormattedNoSymbol": "0,00",
            "PaymentCardNumber": null,
            "PaymentCardType": null,
            "PaymentTransactionId": null
        },
        "UmbracoLanguageId": 0,
        "VAT": 0,
        "VATGroupId": 1,
        "VATPercent": "0"
    }

     

  • Anders Burla 2560 posts 8256 karma points
    Oct 24, 2013 @ 10:30
    Anders Burla
    0

    When you get a 500 error you need to look in the umbraco log (DB or Log file) and your server log to see what the error is. a 500 error is an internal exception which isnt show to the client - so you need to look at the server what the error is.

    Kind regards
    Anders

  • fontanka16 24 posts 73 karma points
    Oct 24, 2013 @ 11:38
    fontanka16
    0

    Thank you for the quick response (again).

    I found the Error. The 500 was because there was no Dictionary Item in place at the payment provider configuration form. 

    I later found that none of the Payment Provider configurations had survived the upgrade except for their names and id.But now everything works like a charm again.

     

    Looking at the Order again i can see that the DictionaryItemName field is empty:

    "Payment":{
           
    "DictionaryItemName":"",
           
    "Fee":0,
           
    "FeeFormatted":"0,00 kr",
           
    "FeeFormattedNoSymbol":"0,00",
           
    "FeeVAT":0,
           
    "FeeVATFormatted":"0,00 kr",
           
    "FeeVATFormattedNoSymbol":"0,00",
           
    "FeeWithoutVAT":0,
           
    "FeeWithoutVATFormatted":"0,00 kr",
           
    "FeeWithoutVATFormattedNoSymbol":"0,00",
           
    "Id":4,
           
    "MediaId":null,
           
    "Name":"DIBS bokköp"
       
    },
Please Sign in or register to post replies

Write your reply to:

Draft