Copied to clipboard

Flag this post as spam?

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


  • Brendan Rice 538 posts 1101 karma points
    Nov 28, 2012 @ 02:13
    Brendan Rice
    0

    Problem with GetPaymentForm($button) not creating a button

    I have altered the starter kit to work off a custom payment gateway (payment sense), and I tested it about a month ago and everything seemed fine.

    I have come back to the project and steps 4 (pre-payment) doesn;t seem to generate the correct button to post the form to the payment gateway:

    Here is the code that gets generated, I am not sure why I can't click the nextWrap div any more, even when the checkbox is check to accept conditions. Can anyone help please?

    <div id="nextWrap"><div><span>05</span> Payment</div><form action="http://gh/tcbase/teacommerce/PaymentContinue/DefaultPaymentProvider/2D134916AD12C848888D518B5A0F3E87.aspx" method="post"><input id="next" type="submit" value="" class=""></form></div>

     

     

            <xsl:if test="$nextStep != ''">

              <div id="nextWrap">

                <div>

                  <xsl:value-of select="$nextStep/umbHeadline" disable-output-escaping="yes" />

                </div>

                <xsl:variable name="button">

                  <xsl:text>&lt;input id=&quot;next&quot; type=&quot;submit&quot; value=&quot;&quot; class=&quot;&quot; /&gt;</xsl:text>

                </xsl:variable>

                <xsl:value-of select="teacommerce:GetPaymentForm($button)" disable-output-escaping="yes" />

              </div>

            </xsl:if>

     

  • Anders Burla 2560 posts 8256 karma points
    Nov 28, 2012 @ 08:30
    Anders Burla
    0

    Hi Brendan

    Could you try and add a test text to your input button's value field. The input button is a submit - so it should submit your form. Could you see in Firebug in FF if nothing happens when you click the button?

    Kind regards
    Anders

  • Brendan Rice 538 posts 1101 karma points
    Nov 28, 2012 @ 11:02
    Brendan Rice
    0

    Thanks for the quick response Anders.

    The next button doesn't seem to be gettign displayed, all I see is a div with [05 Payment] and when it is clicked there is no network activility and no errors in the javscript log.

    I assumed that when the checkbox to accept terms this would make the div clickable, but it doesn;t seem to be doing that.

    Any ideas?

    <div><span>05</span> Payment</div>

    Thaks again,

    Brendan

  • Anders Burla 2560 posts 8256 karma points
    Nov 28, 2012 @ 11:09
    Anders Burla
    0

    No - the div vill never be clickable :)

    If the input isnt generated I think there is an error in the payment provider generating the form. Does it generate a form and the input(submit) in your html?

  • Brendan Rice 538 posts 1101 karma points
    Nov 28, 2012 @ 11:11
    Brendan Rice
    0

    Yea the form and the inputs all get generated fine. If you can point me at the method that you think is the point of failure I will debug it more this evening (unfortunatly don't have the code on this machine).

    Thanks again.

     

     

  • Anders Burla 2560 posts 8256 karma points
    Nov 28, 2012 @ 11:34
    Anders Burla
    0

    You should see what url the form will be posted to and what values are in the form. This should give you the first idea of if the values are correct.

  • Brendan Rice 538 posts 1101 karma points
    Nov 28, 2012 @ 23:00
    Brendan Rice
    0

    <form action="https://mms.paymentsensegateway.com/Pages/PublicPages/PaymentForm.aspx" method="post"><input type="hidden" id="MerchantID" name="MerchantID" value="TESTGu-3738331"><input type="hidden" id="ResultDeliveryMethod" name="ResultDeliveryMethod" value="SERVER"><input type="hidden" id="CallbackURL" name="CallbackURL" value="http://subdomain.maindomain.com/callback.aspx"><input type="hidden" id="Amount" name="Amount" value="105430"><input type="hidden" id="CurrencyCode" name="CurrencyCode" value="826"><input type="hidden" id="OrderID" name="OrderID" value="76"><input type="hidden" id="TransactionType" name="TransactionType" value="SALE"><input type="hidden" id="TransactionDateTime" name="TransactionDateTime" value="2012-11-28 21:57:35 +00:00"><input type="hidden" id="OrderDescription" name="OrderDescription" value="ORDER76"><input type="hidden" id="CustomerName" name="CustomerName" value="Brendan Rice"><input type="hidden" id="Address1" name="Address1" value="32 Blacks Green"><input type="hidden" id="Address2" name="Address2" value=""><input type="hidden" id="Address3" name="Address3" value=""><input type="hidden" id="Address4" name="Address4" value=""><input type="hidden" id="City" name="City" value="Belfast"><input type="hidden" id="State" name="State" value=""><input type="hidden" id="PostCode" name="PostCode" value="BT41 2GZ"><input type="hidden" id="CountryCode" name="CountryCode" value="826"><input type="hidden" id="CV2Mandatory" name="CV2Mandatory" value="True"><input type="hidden" id="Address1Mandatory" name="Address1Mandatory" value="False"><input type="hidden" id="CityMandatory" name="CityMandatory" value="False"><input type="hidden" id="PostCodeMandatory" name="PostCodeMandatory" value="False"><input type="hidden" id="StateMandatory" name="StateMandatory" value="False"><input type="hidden" id="CountryMandatory" name="CountryMandatory" value="False"><input type="hidden" id="ServerResultURL" name="ServerResultURL" value="http://gh/cart/accept/ReceiveTransactionResult.ashx"><input type="hidden" id="PaymentFormDisplaysResult" name="PaymentFormDisplaysResult" value="False"><input type="hidden" id="ServerResultURLCookieVariables" name="ServerResultURLCookieVariables" value=""><input type="hidden" id="ServerResultURLFormVariables" name="ServerResultURLFormVariables" value=""><input type="hidden" id="ServerResultURLQueryStringVariables" name="ServerResultURLQueryStringVariables" value=""><input type="hidden" id="HashDigest" name="HashDigest" value="0305e6f0be859b0219b394729983323d4658db78"><input id="next" type="submit" value="" class=""></form>

  • Brendan Rice 538 posts 1101 karma points
    Nov 28, 2012 @ 23:05
    Brendan Rice
    0

    Can't see anything wrong there Anders can you?

  • Brendan Rice 538 posts 1101 karma points
    Nov 29, 2012 @ 00:09
    Brendan Rice
    0

    Finally got to the bottom of it.

    Turns out that it was a css issue. It wasn't obvious that the input was overlaid the underlying div.

    Ona side note is a teacommerce contrib? I was thinking once I get this project out the door to put the share the PaymentSense provider code, so it might help soemone.

    Thanks again for taking the time to help.

  • Anders Burla 2560 posts 8256 karma points
    Nov 29, 2012 @ 10:31
    Anders Burla
    0

    Hi Brendan

    Great to hear that you got it figured out!

    The Tea Commerce payment provider project is open source and you can make a patch or fork it and send me a request to implement the fork. We would be happy to include it in Tea Commerce.

    https://bitbucket.org/teasolutions/tea-commerce-tea-commerce-payment-providers

    Kind regards
    Anders

Please Sign in or register to post replies

Write your reply to:

Draft