Copied to clipboard

Flag this post as spam?

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


  • John Mullan 8 posts 28 karma points
    Jul 01, 2015 @ 15:29
    John Mullan
    0

    Adding a payment provider - Worldpay form redirect method

    Hey,

    I'm creating a payment provider for Worldpay (using the form redirect method where a form is built up and redirected to Worldpay to handle the transaction) but I have a few queries regarding the Payment provider setup.

    All methods in PaymentGatewayMethodBase return IPaymentResult however I do not wish to create a payment at this stage. I only want to execute payment logic when the user has returned from the payment gateway.

    I'm currently overriding PerformAuthorizePayment to do the following:

    protected override IPaymentResult PerformAuthorizePayment(IInvoice invoice, ProcessorArgumentCollection args)
        {
            HttpContext.Current.Response.Redirect( "/umbraco/merchelloworldpay/worldpaysurface/process?key=" + invoice.Key.ToString( ) );
            return null;
        }
    

    which will throw an null ref when Merchello.Core.Gateways.GatewayEvents.CreateOrder is called.

    Is there another way to execute the redirect without having to create a payment?

    If that isn't possible and I create a payment, can I then update applied payment status on response of WorldPay? (when I have found the invoice of course) Or must I add a new payment?

    Thanks! John

  • marcio 7 posts 79 karma points
    Oct 12, 2015 @ 11:48
    marcio
    0

    Hi John,

    Did you find an answer for your question?

    I'm currently at the same stage as you..

    Regards, Márcio Duarte

  • Michelle Topp 33 posts 143 karma points
    May 10, 2016 @ 14:35
    Michelle Topp
    0

    Hi John and Marcio,

    Did you guys find the answer to this issue? I'm about to come to this and saw it as a potential issue.

    regards, Michelle

  • Steve Edson 16 posts 91 karma points
    Aug 14, 2017 @ 11:36
    Steve Edson
    0

    I realise this is another year older, but was there any solution?

    Thanks.

Please Sign in or register to post replies

Write your reply to:

Draft