Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Morten Christensen 61 posts 215 karma points
    Dec 21, 2013 @ 20:55
    Morten Christensen
    0

    Order_Finalized not fired with DIBS

    Hi,

    I'm creating a new webshop where the payment provider is DIBS.

    On startup I'm subscribing to Order_Finalized to set some updatede values on the member. But my problem is that Order_Finalized is not fired. I can see that the order is in the DIBS admin module, and the user gets to continue url.
    Also, if I change the payment provider to Invoicing in Teacommerce, the Order_Finalized event is fired as it should.

    I can see that someone had the same problem before: http://our.umbraco.org/projects/website-utilities/tea-commerce/tea-commerce-support/38200-Order-state-after-payment-%28DIBS-provider%29 but that was in v1. I'm on Teacommerce 2.2.1.
    Shop IP in DIBS admin is blank, an every thing is setup as the guide.

    I've used teacommerce with 3 other payment providers on other shops, but this is the first time with DIBS.

    Thanks!

    Morten

  • Morten Christensen 61 posts 215 karma points
    Dec 21, 2013 @ 20:58
    Morten Christensen
    0

    No error in the log btw

  • Morten Christensen 61 posts 215 karma points
    Dec 22, 2013 @ 15:01
    Morten Christensen
    0

    Error log from DIBS:

    The error on the last attempt was: No connection to your server (no response)

    Merchant number (DIBS ID): XXX
    Shop name: XXX

    ---Begin of listing of request (contents of the URL that was attempted called):
    POST /base/TC/PaymentCallback/1/DIBS/404c74c3-7fc8-4c4e-9528-13af2ce08546.aspx HTTP/1.1
    Host: XXX
    User-Agent: DIBS
    Connection: close
    Accept: */*
    Content-Type: application/x-www-form-urlencoded
    Content-Length: 1248

     

    The site have been online all time, and if I try to call /base/TC/PaymentCallback/1/DIBS/404c74c3-7fc8-4c4e-9528-13af2ce08546.aspx I'll get a blank page with no errors.
    Btw, its not a localhost site.. It is running online.

  • Anders Burla 2560 posts 8256 karma points
    Dec 26, 2013 @ 16:33
    Anders Burla
    0

    Hi Morten

    What DIBS product have you bought? Maybe the DIBS API has been updated since the provider was programmed? You can see the provider code here:
    https://bitbucket.org/teasolutions/tea-commerce-tea-commerce-payment-providers

    Kind regards
    Anders

  • Morten Christensen 61 posts 215 karma points
    Dec 28, 2013 @ 19:54
    Morten Christensen
    0

    Hi Anders,

    I'm using a normal DIBS solution with FlexWin. It was bought a month ago.

    I don't know what to look for in the payment provider code..

  • Anders Burla 2560 posts 8256 karma points
    Jan 06, 2014 @ 18:16
    Anders Burla
    0

    Is your site on a live domain?

    Does your provider has the test parameter set? If it has you should see a DIBS file in your website folder with the rewuest data for the call back. Its a txt file.

    Kind regards
    Anders

  • Morten Christensen 61 posts 215 karma points
    Jan 06, 2014 @ 20:46
    Morten Christensen
    0

    Yes its on a live domain, and I have the callback file:

    Form:
    orderid : CART-47
    paytype : VISA
    cardnomask : XXXXXXXXXXXX0000
    cardprefix : 471110
    cardexpdate : 2406
    accepturl : http://XXXXX/base/TC/PaymentContinue/1/DIBS/af7453ab-f34f-4baf-90e3-92b4aac0399e.aspx
    agreement : 5455998
    amount : 12000
    callbackurl : http://XXXX/base/TC/PaymentCallback/1/DIBS/af7453ab-f34f-4baf-90e3-92b4aac0399e.aspx
    cancelurl : http:/XXXXX/base/TC/PaymentCancel/1/DIBS/af7453ab-f34f-4baf-90e3-92b4aac0399e.aspx
    capturenow : 1
    currency : 840
    declineurl : https://payment.architrade.com/paymentweb/reply.action
    dibsmd5 : e0fd31f452c8fbbe3daf061f55133f4a
    flexwin_cardlogosize : 3
    flexwin_help : 1
    fullreply : 1
    ip : XXXXX
    lang : en
    md5key : f885cd469c6facc66d0da8ee07bdcabe
    merchant : 90192433
    newDIBSTransactionID : 818788114
    newDIBSTransactionIDVerification : f130a31607a96b6be657ac83656f99738643cf13227e3e1da11490f3a8e9599a
    originalUserAgent : Mozilla/5.0 (Windows NT 6.3; WOW64; rv:26.0) Gecko/20100101 Firefox/26.0
    postype : ssl
    test : 1
    textreply : 1
    token : E8P6017ACTW15BBFU3127341JGACMTBA
    approvalcode : 123456
    statuscode : 2
    transact : 818788114
    authkey : ce7b067d1c19f1537b7e7c241ea38a7d

  • Anders Burla 2560 posts 8256 karma points
    Jan 07, 2014 @ 13:45
    Anders Burla
    0

    You see no errors in the Log start starts with the text "DIBS" - because if you have the dibs-callback-data.txt file the callback happens. But somehow fails. So it must be something in the DIBS code.

  • Morten Christensen 61 posts 215 karma points
    Jan 09, 2014 @ 23:21
    Morten Christensen
    0

    Yes, I get a Success from DIBS (accepturl is fired). But the order_finalized is not fired in the code. If I choose another payment provider, like Invoicing, order_finialzed is fired as it should.

    I have no errors in the log.

  • Anders Burla 2560 posts 8256 karma points
    Jan 10, 2014 @ 11:39
    Anders Burla
    100

    The accept url is of no interest, because the place where stuff happens is the callback url. So if you have the callback file then your server is hit from DIBS. Now we just need to figure out what is wrong. From the source code you can see that there is a try catch around it all - so if any error happens it will be logged to the /App_Data/Logs (if running newer Umbraco version). And also if the md5 hash is wrong it will also log it.
    https://bitbucket.org/teasolutions/tea-commerce-tea-commerce-payment-providers

    Try and tripple check the log files. Else try and download the bit bucket project, add some extra logging code in the callback method and upload the new dll to your website and test again. So we can try and debug and see what is going wrong and where.

    Kind regards
    Anders

  • Morten Christensen 61 posts 215 karma points
    Jan 28, 2014 @ 13:13
    Morten Christensen
    0

    Hi Anders,

    Sorry for the late response! Just got back from vacation..

    I did a new reinstall of TC, and somehow it now works.

    The shop will up and running in a few days, so I don't have the time to debug what went wrong. Always the timepressue :P

    Thanks anyway, and sorry for your time!

     

Please Sign in or register to post replies

Write your reply to:

Draft