0

ExpressionEngine v2.8.1

Cartthrob 2.5

I need to change the payment gateway from SagePay to SagePay Europe Offsite, I have the following ct form code in the checkout page:

{exp:cartthrob:checkout_form
    gateway="sage_s"
    return="shop/order"
}
<input type="text" name="first_name" value="" id="first_name" />

...

<input type="submit" class="button checkout_submit" value="Submit Order">

{exp:cartthrob:checkout_form}

The only thing I've changed is that I've added the payment gateway, it didn't have one before. I have also set the SagePay Europe Offsite gateway to test mode.

My question is, what should happen when I select 'Submit' now? What DOES happen is that I get redirected to the 'shop/order' page with the following error:

'Your payment failed: Failed: The transaction was not authorized by the acquiring bank. No funds could be taken from the card..'

But surely I should be redirected to the Sagepay site?

I've created the following simple form:

    {exp:cartthrob:checkout_form 
    gateway="sage_s"
    return="test/order"
}
    {gateway_fields}
    <br />
    <input type="submit" value="Checkout" />
{/exp:cartthrob:checkout_form}

Getting the same error

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.