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"); }
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:
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)
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:
This is how our orders look in ucommerce:
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:
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)
is working on a reply...