×

Discussion Board

Results 1 to 15 of 18

Hybrid View

  1. #1
    Regular Contributor
    Join Date
    Oct 2009
    Posts
    59

    IAP Ticket Verification API not working in production mode

    I've send this question to developer.support@nokia.com but only got a link to the FAQ and got asked to post my question here again. So here it goes:

    Dear Developer Support Team,

    we're using Symbian/Qt IAP with our own backend server. There we use the Ticket Verification API to test the purchase tickets. We directly pass the purchase ticket from our app to the backend server and from there to Nokia IAP servers. We don't extract or manipulate the contents of the purchase ticket.

    If we're using the app in online testing mode everything works fine. The Ticket Verification API accepts our POST request and we receive a valid response. But if we remove the "TEST_MODE.TXT" file in order to use the IAP API in production mode, the Ticket Verification API returns "HTTP 400 - Bad Request".

    The code paths in our app and the backend server are exactly the same in both situations. The only difference is the existence of the TEST_MODE.TXT file.

    So my question is: Is there anything else we need to do in order to use the Ticket Verification API in production mode? E.g. must our app be published? Or do we have to use a different server address?

    Here is one transaction-ID that shows this problem: 218558590949

    If you need more information please don't hesitate to contact me.

    Best Regards,
    Cornelius Hald
    *EDIT*
    Please also not that the money has been successfully withdrawn from my Credit Card.

  2. #2
    Regular Contributor
    Join Date
    Oct 2009
    Posts
    59

    Re: IAP Ticket Verification API not working in production mode

    The FAQ states to contact the support again via mail providing the following information. I've done that now, so lets see what happens...

    - Nokia Store Purchase OK? (Yes/No)
    - Time of IAP transaction (Time/Day/Month/Year)
    - Time zone
    - Nokia Store account
    - IAP resource that you are purchasing
    - IMEI
    - Operator
    - Works with Credit card? (Yes/No)
    - Works with Operator Billing? (Yes/No)
    - Error message or behavior observed

  3. #3
    Super Contributor
    Join Date
    May 2008
    Location
    Helsinki, Finland
    Posts
    1,100

    Re: IAP Ticket Verification API not working in production mode

    Hi there, derconny

    Hope your case will get handled as soon as possible, as you have indeed done all there is to be done.

    I will be following this case personally.

    Best Regards,
    Marko
    [FONT="Comic Sans MS"][COLOR="Blue"][/COLOR][I]Marko Lumivuori
    Technical Support
    +358 40 8019330
    [email]marko.lumivuori@nokia.com[/email][/I][/FONT]

  4. #4
    Regular Contributor
    Join Date
    Oct 2009
    Posts
    59

    Re: IAP Ticket Verification API not working in production mode

    Thank you! I'm already in contact with one of your colleagues via email and I'm currently rechecking everything using working and not-working tickets curl, etc... We should know more soon

  5. #5
    Super Contributor
    Join Date
    May 2008
    Location
    Helsinki, Finland
    Posts
    1,100

    Re: IAP Ticket Verification API not working in production mode

    Hello!

    Sounds great, I am happy you got connected and could continue without any further delays!

    Keep up the good work there! =)

    Have a great day!

    Best,
    Marko
    [FONT="Comic Sans MS"][COLOR="Blue"][/COLOR][I]Marko Lumivuori
    Technical Support
    +358 40 8019330
    [email]marko.lumivuori@nokia.com[/email][/I][/FONT]

  6. #6
    Regular Contributor
    Join Date
    Oct 2009
    Posts
    59

    Re: IAP Ticket Verification API not working in production mode

    Hi again,

    I'm back with more information but no solution yet unfortunately...

    I did a production payment and a testing payment of the same in-app item and captured the tickets returned by the IAP API. It turned out that if I use the Purchase Verification Request Test Tool both tickets (testing and production) verify just fine.

    However if I try to verify them using python or curl I still get an error but only with the production ticket. Here are the tickets for you to reproduce this issue.

    Testing ticket
    Code:
    content=<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
    <PurchaseVerificationRequest xmlns="http://payment.ovi.com/iap">
    <Binary>PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiIHN0YW5kYWxvbmU9InllcyI/PjxQdXJjaGFzZVRpY2tldCBzaWduYXR1cmU9ImE4NGE0YTQzY2NkYjhjNzViZGU5M2FkMzkzNzBjNTIxZWI3NjU0ZjYiIGltc2k9IjY2YmIwMjBhZmUwNGUwYmE5YjJhMzk0NTc5YzU0OGM4NmExNjkxNmJlZWViZmYwZjVmOGYzNGE1ZDBhOGZmY2ZlYTE5YTY4YmMzNmMxMzYxM2I3OTFjMmNiNDgwMTBhMTEwYTNjMjEzM2JlMjY3NDBlOTcyZjEwZjNkODI0NjVmIiBpbWVpPSJmNzY4OTdhNWEzNTcxZDc5NWZmODIwYzg2YTZjNmIyNzM5N2MwODg2ZGEzZTU1YzE4Nzc5NzMxZmE4ZTBkNjZkMDcyODNhMjQ3MTJhY2ZkMDc1YWQ3MWZlZGJlYzk3YzBlOTcyMjMyZTNjYjEwOGEwZjRkYWI2NTFiYWY2NDcyMCIgYWNjb3VudElkPSJmZjIwNjBkNDAxY2IxOTlhYjMwYWViNjQ2ZDUzMDZhZTg4ODYzNmU0YjlmYWQyN2YwMDU1ZWJkYWQ1YjBiYWQwZDhmNzc5NjMzNTk0NGQ5ODdjYzhiOTNhOTI3Nzg5MjdlNjE0NmY4M2ZmMmU5MmFmNGEwZDdkNGQwMTVhZWYzNCIgcHJvZHVjdElkPSI4MDYwNjUiIGFwcGxpY2F0aW9uSWQ9IjAwMDAwMCIgdHJhbnNhY3Rpb25UaW1lPSIyMDEyLTAyLTE1VDEwOjA5OjQ0LjAwMFoiIHRyYW5zYWN0aW9uSWQ9IlRFU1QzOTc0NTQ4NjY3NTIiIHhtbG5zPSJodHRwOi8vcGF5bWVudC5vdmkuY29tL2lhcCIvPg==</Binary>
    </PurchaseVerificationRequest>
    Production ticket
    Code:
    content=<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
    <PurchaseVerificationRequest xmlns="http://payment.ovi.com/iap">
    <Binary>PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiIHN0YW5kYWxvbmU9InllcyI/PjxQdXJjaGFzZVRpY2tldCBzaWduYXR1cmU9IjFlZDhjZTkyNTk3MWNlNTE1NzJlZWU2ZjA3YWJlODA2ODYxN2E1MWMiIGltc2k9IjY2YmIwMjBhZmUwNGUwYmE5YjJhMzk0NTc5YzU0OGM4NmExNjkxNmJlZWViZmYwZjVmOGYzNGE1ZDBhOGZmY2ZlYTE5YTY4YmMzNmMxMzYxM2I3OTFjMmNiNDgwMTBhMTEwYTNjMjEzM2JlMjY3NDBlOTcyZjEwZjNkODI0NjVmIiBpbWVpPSJmNzY4OTdhNWEzNTcxZDc5NWZmODIwYzg2YTZjNmIyNzM5N2MwODg2ZGEzZTU1YzE4Nzc5NzMxZmE4ZTBkNjZkMDcyODNhMjQ3MTJhY2ZkMDc1YWQ3MWZlZGJlYzk3YzBlOTcyMjMyZTNjYjEwOGEwZjRkYWI2NTFiYWY2NDcyMCIgYWNjb3VudElkPSJmZjIwNjBkNDAxY2IxOTlhYjMwYWViNjQ2ZDUzMDZhZTg4ODYzNmU0YjlmYWQyN2YwMDU1ZWJkYWQ1YjBiYWQwZDhmNzc5NjMzNTk0NGQ5ODdjYzhiOTNhOTI3Nzg5MjdlNjE0NmY4M2ZmMmU5MmFmNGEwZDdkNGQwMTVhZWYzNCIgcHJvZHVjdElkPSI4MDYwNjUiIGFwcGxpY2F0aW9uSWQ9IjAwMDAwMCIgdHJhbnNhY3Rpb25UaW1lPSIyMDEyLTAyLTE1VDA5OjM2OjMyLjAwMFoiIHRyYW5zYWN0aW9uSWQ9IjIwNzMzODI4MDMyMSIgeG1sbnM9Imh0dHA6Ly9wYXltZW50Lm92aS5jb20vaWFwIi8+</Binary>
    </PurchaseVerificationRequest>
    To send those tickets to the Ticket Verification API I save them as files and then execute the following curl command on a shell.
    Code:
    curl "https://payment.ovi.com/iap/1.0/purchases/verify?method=GET" --data @something.ticket -w "\nCode: %{http_code}\n"
    Here is what I get using the testing ticket.
    Code:
    [conny@t61 ~]$ curl "https://payment.ovi.com/iap/1.0/purchases/verify?method=GET" --data @testing.ticket -w "\nCode: %{http_code}\n"
    <?xml version="1.0" encoding="UTF-8" standalone="yes"?><PurchaseVerificationResponse result="OK" xmlns="http://payment.ovi.com/iap"/>
    Code: 200
    And here with the production ticket.
    Code:
    [conny@t61 ~]$ curl "https://payment.ovi.com/iap/1.0/purchases/verify?method=GET" --data @production.ticket -w "\nCode: %{http_code}\n"
    Server Error: 4f2587a6-831a-4779-914f-f17b8589a259
    Code: 400
    I've checked the JavaScript/HTML source code of the "Purchase Verification Request Test Tool" but cannot find any significant differences. But obviously it is doing something different because the result is different :/

    I guess there might be something wrong with the encoding of the data before sending it to the API, but I'm stuck and would really appreciate your help.

    Thanks!
    Cornelius

Similar Threads

  1. App is not working in offline mode
    By tarun.WRT in forum Symbian
    Replies: 1
    Last Post: 2011-01-08, 11:13
  2. [RDA] T9 Predictive Text mode working as numeric mode in E71
    By sameerbkamble in forum Feedback - Nokia Developer Services & Infrastructure
    Replies: 1
    Last Post: 2009-03-30, 12:22
  3. E61 Default Input Mode Not Working
    By pistha in forum Symbian
    Replies: 7
    Last Post: 2009-01-21, 14:39
  4. MY Input mode key selection was not working
    By sriramadasu in forum Symbian
    Replies: 0
    Last Post: 2007-01-01, 06:46

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •