Copied to clipboard

Flag this post as spam?

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


  • Ron S. 3 posts 23 karma points
    May 10, 2013 @ 13:54
    Ron S.
    0

    TC.GeneratePaymentForm generating GET form

    Dear beloved developers,

    I am currently making an PaymentProvider for an small dutch Payment Processor (Mollie).
    I have generated the required HtmlForm (Done in  GenerateHtmlForm() ). But the generated HtmlForm is using the POST method. Instead Mollie requires me to use GET.

    I tried to add GET using the Attributes property of the PaymentHtmlForm. This works, but now the form sets itself with GET and POST. This doesn't work for me....

    How can I tell the system to use GET only for the mollie payment provider?

    All help/info is usefull for me atm :)

     

    Thnx, Ron

  • Anders Burla Johansen 2560 posts 8256 karma points
    May 13, 2013 @ 16:24
    Anders Burla Johansen
    0

    Hi Ron

    You are quite right that Tea Commerce is working with POST for the payment form - but what a great idea to support GET. I will have to implement this in the core of Tea Commerce - will you be able to help us test it with Mollie?

    Kind regards
    Anders

  • Ron S. 3 posts 23 karma points
    May 15, 2013 @ 09:18
    Ron S.
    0

    Hi Anders,

    Thank you for your reply. Too bad this can't be done, it seems like a minor implementation to my problem.
    I am thinking about writing a little jQuery function to alter the POST method on onSubmit(). But this is really sketchy and cannot be implemented in live enviroments.

    Are there any alternatives? 

     

    I would like to help you guys out with testing :)
    I can even help you guys out implementing this problem, because I think it's just a small change.

     

    Is there any way for me te enter the source code inside the PaymentHtmlForm() class, and alter this class just a little bit?
    It would be of a great help since I cannot finish my much needed Payment Provider.

    Thanks anyway for your help! You rock!

  • Anders Burla Johansen 2560 posts 8256 karma points
    May 17, 2013 @ 14:20
    Anders Burla Johansen
    0

    I will update the API to support this - until then - the jQuery way is properly the best :)

    You cant change the source code for the payment provider API as this is part of Tea Commerce and not the payment provider project that is just using the API.

    I hope to implement it next week.

    Kind regards
    Anders

  • 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