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.

  • Gonçalo Assunção 39 posts 68 karma points
    Feb 02, 2015 @ 18:59
    Gonçalo Assunção
    0

    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":

    DateUpdated ByStatusMessage
    02/02/2015 15:33:49 admin Basket SetExpressCheckout: Vis
    02/02/2015 15:33:51 admin Basket SetExpressCheckoutResponse: Vis
    02/02/2015 15:34:38 admin Basket GetExpressCheckoutDetails: Vis
    02/02/2015 15:34:39 admin Basket GetExpressCheckoutDetailsResponse: Vis
    02/02/2015 15:34:39 admin Basket DoExpressCheckoutPayment: Vis
    02/02/2015 15:34:41 admin Basket DoExpressCheckoutPaymentResponse: Vis
    02/02/2015 15:34:41 admin New order

     

    And here's the Audit Log from an hard coded Completed Order:

    DateUpdated ByStatusMessage
    02/02/2015 17:23:01 admin Basket SetExpressCheckout: Vis
    02/02/2015 17:23:02 admin Basket SetExpressCheckoutResponse: Vis
    02/02/2015 17:23:34 admin Basket GetExpressCheckoutDetails: Vis
    02/02/2015 17:23:35 admin Basket GetExpressCheckoutDetailsResponse: Vis
    02/02/2015 17:23:35 admin Basket DoExpressCheckoutPayment: Vis
    02/02/2015 17:23:37 admin Basket DoExpressCheckoutPaymentResponse: Vis
    02/02/2015 17:23:37 admin New order  
    02/02/2015 17:23:37 admin Completed order New order => Completed order.
    02/02/2015 17:23:40 admin Completed order Acquire was successful >> AUTHORIZATIONID => 58L869259C0345740 TIMESTAMP => 2015-02-02T17:23:43Z CORRELATIONID => f495a972cade9 ACK => Success VERSION => 51.0 BUILD => 15110743 TRANSACTIONID => 4YK68311UG592825E PARENTTRANSACTIONID => 58L869259C0345740 TRANSACTIONTYPE => expresscheckout PAYMENTTYPE => instant ORDERTIME => 2015-02-02T17:23:42Z AMT => 1.25 TAXAMT => 0.00 CURRENCYCODE => DKK PAYMENTSTATUS => Pending PENDINGREASON => multicurrency REASONCODE => None
    02/02/2015 17:25:31 admin Completed order Completed order => 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!


     

  • Thomas 30 posts 163 karma points
    Feb 03, 2015 @ 14:54
    Thomas
    0

    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

  • Gonçalo Assunção 39 posts 68 karma points
    Feb 03, 2015 @ 15:29
    Gonçalo Assunção
    0

    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?

  • Thomas 30 posts 163 karma points
    Feb 04, 2015 @ 09:45
    Thomas
    0

    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.

Please Sign in or register to post replies

Write your reply to:

Draft