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.

  • René Nissen 15 posts 96 karma points
    Mar 06, 2015 @ 22:00
    René Nissen
    0

    Order status difference

    Hi

    I have a strange problem.

    When I create a purchaseorder in my developer environment and pass it to my payment provider, then I have the order status 1 (basket) when I receive the callback from the payment provider (DIBS)

    When I do the same on our webserver, then I have order status 2 (new order) when I receive the callback from (DIBS)

    This is how I retrieve the purchase order: 

    PurchaseOrder purchaseOrder = PurchaseOrder.All().FirstOrDefault(x => x.OrderGuid.ToString() == OrderGuid);

    If I use a custom payment method on the webserver, then the order status is 1 (basket) as expected.

    It is the same code, config files and database - does anybody have a clue ???

    I am running Umbraco 7.1.8 and uCommerce 6.4.4.14301

  • Martin 181 posts 740 karma points
    Mar 08, 2015 @ 19:08
    Martin
    100

    Hi René,

    Just to be sure. Are you 100% sure that DIBS can reach your development machine? When a callback comes from DIBS it turns the basket into a PurchaseOrder. So to me it sounds like DIBS is not reaching your development machine.

    If DIBS can't reach your development machine with callback it still send the customer to a receipt page because DIBS uses a retry strategy.

    Best regards Martin

  • René Nissen 15 posts 96 karma points
    Mar 08, 2015 @ 20:00
    René Nissen
    0

    Hi Martin

    Now I understand - the status is supposed to be changed when returned from DIBS? I thought that I was supposed to change the order status on the callback and therefore, I wrongfully took the development environment as the correct approach.

    Thank you for the explanation

    Best regards

    René

     

  • Martin 181 posts 740 karma points
    Mar 08, 2015 @ 21:05
    Martin
    0

    Hi Rene,

    You're welcome. When the user is redirected back to the receipt page uCommerce by default doesn't change the basket to a purchase order.

    When you authorizing the payment at DIBS it behind the scene calls a handler in uCommerce and when the callback is succeed the customer is redirected to the receipt page.

    Though I know in newer versions of the DIBS API it does the callback async but I don't think it has been implemented yet.

    Best regards

    Martin

    EDIT: You can read more about the payment flow here': http://docs.ucommerce.net/ucommerce/v6.6/payment-providers/integrating-hosted-payment-pages.html

Please Sign in or register to post replies

Write your reply to:

Draft