Copied to clipboard

Flag this post as spam?

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


These support forums are now closed for new topics and comments.
Please head on over to http://eureka.ucommerce.net/ for support.

  • Colin Browne 31 posts 52 karma points
    May 27, 2011 @ 17:32
    Colin Browne
    0

    Sagepay integration

    I've followed the steps to enable sagepay in the documentation how ever i'm not sure at what point redirection to payment is supposed to take place (or where this is implemented). Right now it ends with 'pipeline executed successfully' and the order appears in the backend, but at no point is any payment page shown... any idea what could be missing

  • Søren Spelling Lund 1797 posts 2786 karma points
    May 30, 2011 @ 09:12
    Søren Spelling Lund
    0

    Hi Colin,

    You need to issue a call to CommerLibrary:RequestPayments()  at some point before checkout. That will take the customer to the payment gateway pages for creditcard processing.

    Also in this model you don't want to use CommerceLibrary:Checkout() as that should happen once the "OK" callback is received from the payment gateway. You can configure your payment method to automatically execute the checkout pipeline for you.

  • Søren Spelling Lund 1797 posts 2786 karma points
    May 30, 2011 @ 09:13
    Søren Spelling Lund
    0

    Another note: It's important to ensure that SagePay can access your site from the outside as the "OK" callback is an actual web request executed from their server to your's.

  • Colin Browne 31 posts 52 karma points
    May 31, 2011 @ 12:36
    Colin Browne
    0

    When I call RequestPayments it says 'The payment has been updated', but I still don't get taken to a payment gateway unfortunately.

  • Søren Spelling Lund 1797 posts 2786 karma points
    May 31, 2011 @ 15:43
    Søren Spelling Lund
    0

    Was the payment created with the SagePay payment method (and by extension the configured SagePay provider)?

  • Colin Browne 31 posts 52 karma points
    Jun 01, 2011 @ 12:33
    Colin Browne
    0

    It wasn't being created properly (the payment) but I have corrected this now and it all works fine.

    Once the sagepay server OK's the transaction is there a recommended way to automatically mark an order as paid? I'm not sure on what is the best/recommended practise for handling this.

  • Søren Spelling Lund 1797 posts 2786 karma points
    Jun 01, 2011 @ 13:36
    Søren Spelling Lund
    0

    The simplest way is to set up the checkout pipeline for the payment method. (There's a screenshot of it in this thread). uCommerce will executed the configured pipeline and complete the order for you when the callback is received from SagePay.

  • Colin Browne 31 posts 52 karma points
    Jun 01, 2011 @ 17:35
    Colin Browne
    0

    I have set the checkout pipeline as in the screenshot.

    The order is correctly labelled as paid however it still appears under the 'New Order' folder in the ecommerce section, is this what should be happening?

    I notice there are different folders labeled 'Invoiced' 'Paid' etc... I thought that once an order was paid for it would automatically be moved to the 'Paid' folder.

     

  • Søren Spelling Lund 1797 posts 2786 karma points
    Jun 02, 2011 @ 10:19
    Søren Spelling Lund
    0

    Baskets should be moved to "New Orders" automatically when the checkout pipeline is completed by the ConvertBasketToPurchaseOrder task so your example sounds about right. If you're working with the default provider it should leave the payment in the "Authorized" state.

    Orders will never be moved automatically between states from that point on.

  • Luke Alderton 192 posts 509 karma points
    May 25, 2012 @ 16:57
    Luke Alderton
    0

    Hi,

    I'm having the same problem with SagePay in Umbraco 4.7.2 using uCommerce 2.0.5.0, it doesn't seem to take me to the SagePay portal site, it just says successful.

    I was hoping that you could tell me where to place 'CommerceLibrary:RequestPayments()' as you've stated above.

    Thanks in advance!

  • Søren Spelling Lund 1797 posts 2786 karma points
    Jun 01, 2012 @ 13:58
    Søren Spelling Lund
    0

    You'll want the call after you display the order overview to the customer and they click to proceed to payment.

    The reference XSLT store has an example of it. Also double-check that you configured the SagePay provider on your payment method in the "Service" drop down list.

Please Sign in or register to post replies

Write your reply to:

Draft