Copied to clipboard

Flag this post as spam?

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


  • Robert 30 posts 110 karma points
    Aug 29, 2013 @ 14:02
    Robert
    0

    Trying to send customer to sage pay TC.GeneratePaymentForm rendering nothing

    Hi,I'm trying to render out a buy button that with render the form the send them off to my selected payment provider which is sagepay.

    I've taken the following from the demo site file step-accept.cshtml and put it my file:

    @Html.Raw( TC.GeneratePaymentForm( 1, "<input type=\"submit\" class=\"btn btn-brown\" id=\"next\" value=\"Pay\" /><input type=\"submit\" class=\"btn btn-brown\" value=\">\" />" ) )
    


    From my understanding this should render a form and when clicked would redirect the customer in my case to sagepay.Am I missing something?
    It basically renders nothing

    Thanks
    Rob

  • Anders Burla 2560 posts 8256 karma points
    Aug 29, 2013 @ 14:06
    Anders Burla
    0

    It might be because an error in the generation happens. Try look in the umbracoLog DB table and the App_Data/Logs and see if anything with Tea Commerce and Sagepay pops up.

    Kind regards
    Anders

  • Robert 30 posts 110 karma points
    Aug 29, 2013 @ 14:25
    Robert
    0

    Checked nothing being logged.

  • Anders Burla 2560 posts 8256 karma points
    Aug 29, 2013 @ 15:27
    Anders Burla
    0

    Try get the source code and attach your Visual Studio to the website process locally and see what happens.
    https://bitbucket.org/teasolutions/tea-commerce-tea-commerce-payment-providers

    Kind regards
    Anders

  • Robert 30 posts 110 karma points
    Aug 29, 2013 @ 17:20
    Robert
    0

    Is there another way of creating an order other than @TC.GeneratePaymentForm, not creating just to be sent off to SagePay

  • Robert 30 posts 110 karma points
    Aug 29, 2013 @ 17:22
    Robert
    0

    enter image description here

    my sage pay screen is as above

  • Robert 30 posts 110 karma points
    Aug 29, 2013 @ 17:28
    Robert
    0
        <form action="/base/TC/FormPost.aspx" method="post">
        <input name="storeId" type="hidden" value="@storeId" />
        <input name="returnUrl" type="hidden" value="/shop/checkout/confirm-order" />
        <input name="AddOrUpdateOrderProperties" type="hidden" value="properties : properties" />
        <input name="properties" type="hidden" value="firstName : firstName,lastName : lastName, emailAddress : emailAddress, telephoneNumber : telephoneNumber, billingAddress1 : billingAddress1,  billingAddress2 : billingAddress2, billingCity : billingCity, billingPostcode : billingPostcode, shippingAddress1: shippingAddress1,  shippingAddress2 : shippingAddress2, shippingCity : shippingCity, shippingPostcode : shippingPostcode " />
        <input name="shippingCountry" type="hidden" value="shippingCountryCode : shippingCountry" />
        <input name="billingCountry" type="hidden" value="billingCountryCode : billingCountry" />
    

    Then on the page shop/checkout/confirm-order

    I just have the line in my first post. Which just doesn't render anything.

    Thanks Rob

  • Robert 30 posts 110 karma points
    Aug 30, 2013 @ 11:25
    Robert
    0
  • Gordon Saxby 1461 posts 1883 karma points
    Jan 21, 2014 @ 00:40
    Gordon Saxby
    0

    Did you find the problem, as I think I have the same issue!?

  • Mark 122 posts 255 karma points
    Apr 30, 2014 @ 10:22
    Mark
    0

    I too had a similar issue, it turned out that I was just not setting the payment method on the order before trying to render the form. Nice and simple fix, but not in the documentation as a required prerequisite like it should be. Instead I had just maded sure that I had available payment methods for the given country.

    Hop that helps someone..

Please Sign in or register to post replies

Write your reply to:

Draft