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.

  • Matt Nolan 45 posts 65 karma points
    Apr 20, 2012 @ 10:59
    Matt Nolan
    0

    Multiple Payment References

    Hi,

    Is it possible to have multiple payment references set up in Settings > Order Numbers and then choose which one to use depending on what the user orders?

    We're using the WorldPay payment gateway, and need to be able to tell when a customer orders something from a particular section of the site.

    Thanks,

    Matt

  • Søren Spelling Lund 1797 posts 2786 karma points
    Apr 24, 2012 @ 09:02
    Søren Spelling Lund
    0

    Every payment provider has a method called GetReferenceId. You can override that and select the order number series you want to use.

    public class MyWorldPayProvider : WorldPayPaymentMethodService
    {
      public override string GetReferenceId(PaymentRequest request)
      {
         var checkoutService = new CheckoutService();
         return checkoutService.GetOrderNumber("My Custom Payment Reference");
      }

     

  • Matt Nolan 45 posts 65 karma points
    Apr 24, 2012 @ 12:42
    Matt Nolan
    0

    Thanks for the reply Soren,

    One more thing.
    Would the orders still be given an order number from the "Order Number Series" chosen in the Catalog Settings in the backend once the payment has completed?

    Thanks,

    Matt

  • Søren Spelling Lund 1797 posts 2786 karma points
    Apr 24, 2012 @ 13:06
    Søren Spelling Lund
    0

    Order number is selected based on the order number series configured for your store. If you assign an order number before the basket is converted to an order uCommerce will leave it alone so you could use any order number series you want. 

  • Matt Nolan 45 posts 65 karma points
    Apr 24, 2012 @ 13:09
    Matt Nolan
    0

    Thanks

Please Sign in or register to post replies

Write your reply to:

Draft