Copied to clipboard

Flag this post as spam?

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

  • Craig Noble 41 posts 584 karma points c-trib
    Nov 12, 2014 @ 12:32
    Craig Noble

    Hosted Payment Page


    We are currently building a site which used the example site as a base.  The checkout process is the standard AngularJS.

    We would like to integrate with SagePay using the "Form Integration", which forwards the user to Sage Pay via a POST request.  From what I can tell, the payment provider system works really well with dealing with taking payments directly, but what if we aren't dealing with payments directly?

    Should we register the payment as a "Card" payment (and not implement a Sage Pay payment provider) and then from the checkout, redirect the user to a page that forwards them on to pay for their order?  Then confirm the paid order via a notification handler?

    How should we approach this?



  • Rusty Swayne 1655 posts 4993 karma points c-trib
    Nov 13, 2014 @ 17:57
    Rusty Swayne

    Hi Craig,

    I have not used Sage Pay before but would certainly like to help you out. It sounds similar to PayPal.

    The way these work in Merchello:

    The customer selects the payment method (or if there is only one just default it to Sage Pay).

    You will register an AuthorizePayment in Merchello to create the payment record and the applied payment record to associate the payment with the invoice. Next you redirect or POST to Sage Pay with whatever parameters you need and include the PaymentKey from the payment you created in the previous step (if you can't do this with Sage Pay you could use the invoice number or whatever).

    Setup an HttpHandler to be the target of the return from Sage Pay. In the handler, record either a capture payment or denied =)



Please Sign in or register to post replies

Write your reply to: