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.

  • Simon HL 4 posts 71 karma points c-trib
    Jun 11, 2014 @ 14:27
    Simon HL
    0

    Quickpay payment provider - ordernumbers

    How can I make quickpay reference number match the order number in ucommerce?

    I believe I have the same issue as described here:

    http://our.umbraco.org/projects/website-utilities/ucommerce/ucommerce-support/46434-UCommerce-and-quickpay-use-ordernumber-as-reference

    The ordernumbers in ucommerce doesn't match the reference number in quickpay. Apparantly this is by design, but I don't understand why based on the post above.

    However, I'd like to change it, so that the ucommerce ordernumber is used as reference in quickpay. The solution in the post above didn't change anything. I am using razor, and maybe that's why a call to the xslt library doesn't help.

    Payment is triggered like this in a razor macro:

        if (request.HttpMethod == "POST" && request.Form.AllKeys.Any(x => x == "send-order"))
        {
            TransactionLibrary.ExecuteBasketPipeline();
            //UCommerce.Xslt.Library.AssignOrderNumber();
            TransactionLibrary.RequestPayments();
            HttpContext.Current.Response.Redirect("Confirmation.aspx");
        }
    Thanks,
    Simon
  • Simon HL 4 posts 71 karma points c-trib
    Jun 12, 2014 @ 10:27
    Simon HL
    0

    This is how our orders look in ucommerce:

     

  • Morten Skjoldager 440 posts 1499 karma points
    Jun 12, 2014 @ 10:51
    Morten Skjoldager
    0

    Hi Simon,

    What you need to do is assign the basket an order number before you execute the basket pipeline in the code above. That way we'll use the order number as the reference id. It has to be done BEFORE the payment is created as we use the reference id of the payment for Quickpay, which will default to the ordernumber on the order if that is set. 

    The only thing you need to do is the following line of code: 

    new CheckoutService().GetOrderNumber();

     

  • Nickolaj Lundgreen 233 posts 1132 karma points
    Jun 12, 2014 @ 10:56
    Nickolaj Lundgreen
    0

    Hi Simon

    Most ordernumbers are "required" to be sequential, so the normal "setup" is something like this: link

    If you really want to get the same reference id as ordernumber, removing the "assign ordernumber" step from the checkout.config could be a solution (just a guess)

Please Sign in or register to post replies

Write your reply to:

Draft