payment processor notify url

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • rossi256
    Junior Member
    • Oct 2008
    • 6

    #1

    payment processor notify url

    Hi,

    we are about to finish a payment module for Credit Card processor mpay24.com.

    Now there is one problem, after requesting the payment, the request that comes back from mpay24 server does not update the order-status in virtuemart.

    The request looks like the following (from raw-access-log - i replaced data with xxxxxxxxxx):

    xxx.xxx.xxx.xxx - - [14/Oct/2008:14:26:18 -0500] "GET /tr2test/administrator/components/com_virtuemart/mpay_confirm.php?OPERATION=CONFIRMATION&TID=xxxxxx xxxxxxxxxxxxxxxxxxxxxxx&STATUS=BILLED&PRICE=xxxx&C URRENCY=EUR&P_TYPE=CC&BRAND=VISA&MPAYTID=xxxxxxxx& USER_FIELD=&ORDERDESC=xxxxxxxxxxxxxxxxx&CUSTOMER=x xxxxxxxxxxxxxxxxxx&CUSTOMER_EMAIL=&LANGUAGE=DE&CUS TOMER_ID=&PROFILE_STATUS=IGNORED HTTP/1.1" 303 5 "-" "-"

    The order-status is never updated.. it stays pending although the request sends "STATUS=BILLED" ...
    it works on another testserver, but not on this one, not on a dathorn server... if anybody came across such a problem already, please let me know!!!

    thanks in advance!!
    Rossi
  • AndrewT
    Administrator
    • Mar 2004
    • 3656

    #2
    You'll need to debug the script and/or contact the developer for support. You can easily visit that same URL yourself to step through the script and see where the problem is if necessary.

    Comment

    • rossi256
      Junior Member
      • Oct 2008
      • 6

      #3
      scriptdebugging

      Thanks, but how do i debug the script - is there any phpdebugging module installed on the servers??

      thanks

      Comment

      • rossi256
        Junior Member
        • Oct 2008
        • 6

        #4
        tested

        it seems that the script is not even run - like the redirect is happening even before the script is run...

        Comment

        • james
          Senior Member
          • Mar 2004
          • 183

          #5
          It looks like the web server is outputting a HTTP 303 status, which doesn't sound right.

          What do you see if you run the request directly from your web browser?

          Comment

          • rossi256
            Junior Member
            • Oct 2008
            • 6

            #6
            testing

            now we did some testing...
            the script usually checks the IP of the sender...
            Now i switched off the IP-check and did a test by entering the request in the browser manually... and it works!

            But still a request from the mpay-server gets redirected...

            i want to try now to send the request from a php script on another server... even though i don't really know how this works yet...

            Comment

            • rossi256
              Junior Member
              • Oct 2008
              • 6

              #7
              further testing

              Testing with a php script and a CURL-request from another and even the same server(domain) gives a 303 redirect...
              Requesting through the browser by entering the url works....

              ??

              Comment

              • james
                Senior Member
                • Mar 2004
                • 183

                #8
                If it works through the browser, but gets redirected when called from another script, then there must be some logic in the script that is performing the redirect.

                Your best bet would be to contact the script's developers.

                Comment

                • rossi256
                  Junior Member
                  • Oct 2008
                  • 6

                  #9
                  developers

                  the script developer is developing the script for me.
                  the weird thing is that it works on another server... with request through browser, request through CURL and request from mpay-system...

                  it just doesn't work on my server... if called from a script by CURL

                  Comment

                  Working...