Copied to clipboard

Flag this post as spam?

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


  • Dan 1288 posts 3921 karma points c-trib
    Jul 11, 2013 @ 16:43
    Dan
    0

    Tea Commerce: TC.GeneratePaymentForm breaking after upgrade

    Hi,

    I've upgraded a 2.0.0.1 install to 2.1.3, just by installing the package via the Umbraco back-office.  It mostly still works but there's a razor error on cart step 3 where it calls 'TC.GeneratePaymentForm'.

    I notice from the revision history notes that there's a breaking change in 2.1.3: "Hashing methods renamed for payment providers" but I don't know what that means and what the implications are.  My installation is using Sagepay.

    Any ideas as to how to fix this issue would be much appreciated, thanks.

  • Dan 1288 posts 3921 karma points c-trib
    Jul 11, 2013 @ 17:11
    Dan
    102

    Sorted this.  It turned out not to be related to the payment provider but to the breaking changes to the way order properties are set.  In practical terms, it wasn't storing the billing/shipping details so I had to change:

    <input name="AddOrUpdateOrderProperties" type="hidden" value="propertyKeys : propertyKeys" />
    <input name="propertyKeys" type="hidden" value="company,firstName,lastName,streetAddress,zipCode,city,phone,email,comments,shipping_check,shipping_firstName,shipping_lastName,shipping_streetAddress,shipping_zipCode,shipping_city" />

    To:

    <input name="AddOrUpdateOrderProperties" type="hidden" value="properties : properties" />
    <input name="properties" type="hidden" value="company : company, firstName : firstName,lastName : lastName, streetAddress : streetAddress, zipCode : zipCode, city : city, phone : phone, email : email, comments : comments, shipping_check : shipping_check, shipping_company : shipping_company, shipping_firstName : shipping_firstName,shipping_lastName : shipping_lastName, shipping_streetAddress : shipping_streetAddress, shipping_zipCode : shipping_zipCode, shipping_city : shipping_city" />

     

  • Rune Grønkjær 1372 posts 3103 karma points
    Jul 11, 2013 @ 19:57
    Rune Grønkjær
    0

    Hi Dan,

    Glad to hear you figured it out. :)

    /Rune

Please Sign in or register to post replies

Write your reply to:

Draft