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
    Nov 28, 2011 @ 18:24
    Dan
    0

    Error on 'accept and go to payment'

    Hi,

    I'm having an issue with a Tea Commerce implementation which is preventing the user from going to the payment gateway, instead the 'Accept and go to payment' button just links to an error saying:

    <html><head><title>Object moved</title></head><body><h2>Object moved to <a href="">here</a>.</h2></body></html>

    Basically, the payment gateway options are either 'account' (which is the standard TeaCommerce account payment option) and SagePay.  If I try to checkout using the account option, the code surrouding the button is this:

    <form method="post" action="http://localhost:22020/tcbase/teacommerce/PaymentContinue/DefaultPaymentProvider/4841A58B21F2E26DEC6B8AFF903BD9DB.aspx"><input type="submit" class="" value="Accept and go to payment &gt;"></form>

    If I click that, it takes me to a page showing the error above.  If I try to check out using Sagepay, the code behind the button is this:

    <form method="post" action="http://localhost:22020/tcbase/teacommerce/PaymentCancel/SagePay/FA4F25AC59D8CBC84FE0ACA8E4F797A3.aspx"><input type="submit" class="" value="Accept and go to payment &gt;"></form>

    I've checked the settings in the Tea dashboard under 'Settings > Payment methods' and made sure that both credit card and account options have the GBP currency set against them.  Interestingly the VAT drop-down here doesn't seem to save - it's always '--' even if I pick the '20%' VAT option which I have set up and save.  Maybe there's a bug here?

    I'm not sure if it's related, but could it be that I renamed the default country right at the beginning of this set up as per this post - maybe that's done something weird?  I only need this site set up for UK payments in GBP though so it would have been an issue keeping the Danish option in there.

    If anyone can shed any light on this it'd be much apprecaited.

    Thanks

     

     

  • Anders Burla 2560 posts 8256 karma points
    Nov 29, 2011 @ 08:36
    Anders Burla
    1

    Hi Dan

    It doesn't sound like its a bug related to the VAT group not saving ( we will look into that ) or changing the default country. Do you use the Tea Commerce starter kit? Have you deleted some pages at the content section? And did you remember to change the continue url and cancel url of your payment method?

    Kind regards
    Anders

  • Dan 1288 posts 3921 karma points c-trib
    Nov 29, 2011 @ 15:12
    Dan
    0

    Thanks Anders,

    The continue/cancel URLs weren't set, so that's sorted the 'account' payment method, which now works nicely.

    However, there's still an issue with the SagePay option.  When it gets to step 04 in the checkout process the 'Accept and go to payment' just seems to point to a payment-cancel page:

    <div id="cartBottom">
    <form method="post" action="http://dev.mysite.co.uk/tcbase/teacommerce/PaymentCancel/SagePay/6D85EF5B149215D9A2DA4729490C1511.aspx">
    <input type="submit" class="" value="Accept and go to payment &gt;">
    </form>
    <a id="prev" href="/basket/shipping-and-payment.aspx">&lt; Back to shipping and payment</a>
    </div>

    I used the website starter kit but this quite a customised build so there are probably many things which have changed from the starter kit.

    Where would be the best place to begin debugging this?

    Thanks for your help - much appreciated!

  • Anders Burla 2560 posts 8256 karma points
    Nov 29, 2011 @ 15:26
    Anders Burla
    0

    Hi Dan

    This indicates that a problem happend when generating the continue url using Sage Pay API - did you follow my guide to setup Sage Pay?

    http://anders.burla.dk/umbraco/tea-commerce/using-sage-pay-with-tea-commerce/

    You can try and look into the umbracoLog table in database - you should have a line starting with "Tea Commerce" if there was an error in Sage Pay payment provider.

    Kind regards
    Anders

  • Dan 1288 posts 3921 karma points c-trib
    Nov 29, 2011 @ 17:18
    Dan
    0

    Ah-ha!  The host environment has changed and I'd not updated the permitted IP address in SagePay.  Thanks again Anders!

Please Sign in or register to post replies

Write your reply to:

Draft