Copied to clipboard

Flag this post as spam?

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


  • Rasmus Fjord 675 posts 1566 karma points c-trib
    Aug 20, 2012 @ 12:26
    Rasmus Fjord
    0

    Cant find this through razor GetPaymentForm

    Hey :) 

    Im doing our shop through razor. But cant find how to get the payment url, in XSLT i can see its done like this : 

    teacommerce:GetPaymentForm($button)

    But how do i get the paymentform/paymenturl through razor ?

     

  • Rune Grønkjær 1372 posts 3103 karma points MVP
    Aug 20, 2012 @ 12:31
    Rune Grønkjær
    0

    Hi Rasmus,

    Short answer, you can't. Youre the one from the xslt library, it will do the job just as well.

    /Rune

  • Rasmus Fjord 675 posts 1566 karma points c-trib
    Aug 20, 2012 @ 12:34
    Rasmus Fjord
    0

    Dammit :) 

    now I have to make the solution non pure by using XSLT :) 

    Thx for quick answer as allways ! 

  • Anders Burla 2560 posts 8256 karma points
    Aug 20, 2012 @ 12:50
    Anders Burla
    0

    Hi Rasmus

    NO you don't need to use XSLT - it's just a method in the XSLT namespace :)

    TeaCommerce.Library.GetPaymentForm(string input) //the input is the html for the button

    Kind regards
    Anders

  • Rasmus Fjord 675 posts 1566 karma points c-trib
    Aug 20, 2012 @ 12:51
    Rasmus Fjord
    0

    awesome ! 

     

  • Rasmus Fjord 675 posts 1566 karma points c-trib
    Aug 20, 2012 @ 15:26
    Rasmus Fjord
    0

    Is there a way so I only get the URL and hidden inputs so i can wrap it in my own "form" with a class and such on ?

    needed for analytics and some validation.

    Or is there a way to change the "form" markup that comes out from the getpaymentform function, since there is a lot of hidden inputs aswell ?

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies