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.
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"); } }
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?
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.
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
Every payment provider has a method called GetReferenceId. You can override that and select the order number series you want to use.
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
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.
Thanks
is working on a reply...