I'm on the final step of the configuration of the online store that I am working on.
I have two payment providers: Paypal and Dibs...
What happens is that when I go to the payment confirmation page, in the backoffice, the order is added to the "New Order" folder, and it is never transferred to the "Completed Order"
I have uncommented the lines necessary in the CompletedOrder and CancelledOrder Pipelines, and both payment method have the "Checkout pipeline" option in the ucommerce Backoffice.
I can change the order status with the following code: var newOrderStatus = OrderStatus.All().Single(x => x.Name == "Completed order"); var orderService = UCommerce.Infrastructure.ObjectFactory.Instance.Resolve<UCommerce.Transactions. IOrderService>(); orderService.ChangeOrderStatus(obj_basket, newOrderStatus);
I need this to be automatic, because I have some functions that are depending on the success of the payment acquirement, and not on the "manual change".
Yes, I would like that to happen in the normal flow of the order process. I thought that it would be automatic. Perhaps it's not happening because I'm still in test mode. I've seen other threads were it was stated that once they went "live", the ToCompletedOrder pipeline started to work.
uCommerces behavoir will not change when you switch from development to production. The ToCompletedOrder pipeline isn't activated automatically in uCommerce when an order is authorized. That behavoir is somehing that you will have to add yourself by adding new functionally to the checkout pipeline, see /umbraco/ucommerce/pipelines/checkout.config
Completed Order pipeline doubts
Hello guys!
I'm on the final step of the configuration of the online store that I am working on.
I have two payment providers: Paypal and Dibs...
What happens is that when I go to the payment confirmation page, in the backoffice, the order is added to the "New Order" folder, and it is never transferred to the "Completed Order"
I have uncommented the lines necessary in the CompletedOrder and CancelledOrder Pipelines, and both payment method have the "Checkout pipeline" option in the ucommerce Backoffice.
I can change the order status with the following code:
var newOrderStatus = OrderStatus.All().Single(x => x.Name == "Completed order");
var orderService = UCommerce.Infrastructure.ObjectFactory.Instance.Resolve<UCommerce.Transactions.
IOrderService>();
orderService.ChangeOrderStatus(obj_basket, newOrderStatus);
Here's the Audit log from a "New Order":
And here's the Audit Log from an hard coded Completed Order:
I need this to be automatic, because I have some functions that are depending on the success of the payment acquirement, and not on the "manual change".
Thank you in advance!
I assume that you want acquire every payment upon checkout. Is this correct?
If so then you could solve the problem by adding a new pipeline task to the checkout pipeline.
You could add the code the change the order status to a new pipeline task.
Here is an article about how to add a new pipeline task, if you want more background info check out registering new components in uCommerce.
Kind regards
Thomas Arvidsen
Thank you Thomas!
Yes, I would like that to happen in the normal flow of the order process.
I thought that it would be automatic. Perhaps it's not happening because I'm still in test mode. I've seen other threads were it was stated that once they went "live", the ToCompletedOrder pipeline started to work.
Any thoughts about this?
Hey Gonçalo.
uCommerces behavoir will not change when you switch from development to production.
The ToCompletedOrder pipeline isn't activated automatically in uCommerce when an order is authorized.
That behavoir is somehing that you will have to add yourself by adding new functionally to the checkout pipeline, see /umbraco/ucommerce/pipelines/checkout.config
Kind regards
Thomas Arvidsen.
is working on a reply...