×

Discussion Board

Results 1 to 4 of 4

Hybrid View

  1. #1
    Registered User
    Join Date
    Feb 2009
    Posts
    8

    IAP: "Unable to connect to the payment service"

    Hi, I would have two problems when I'm using the Qt IAP API. My device is Nokia N8 and I have installed the latest IAP (3.23.007) API and the simulator to the device and am using the same version of SDK when building too. I use the Nokia Remote Compiler to build by sisx.

    1. When my application calls getProductData, the API returns a positive return value which indicates that the IAP client is properly initialized, but productDataReceived slot does never get called (not positive result or negative, it just does not get called).

    Ovi Store statistics say that I have one IAP item published and I am using the correct productId when calling this API. Would you have any ideas as to why productDataReceived API does not get called in my Qt application? Is there any way to debug this? Does the IAP client write a log anywhere?

    2. Simulating IAP purchase in the device works: the IAP simulator launches and after finishing the "purchase" using the simulator, my application gets a call to purchaseFlowFinished slot. However when I try to use a test server (using [testserver] in TEST_MODE.txt), I get an error message in the IAP screen: "Unable to connect to the payment service. When the connection is restored, please return to the store to check the status of your item.". I have tried this during many days over last week and I always get the same message.

    My development is blocked as I can not test using the test server.

    My device is not connected to cellular network, but I have WIFI available if the device wants to use it. For example, the Ovi Store application and the browser etc. work fine in my device. Does the IAP API require that the device has a SIM card, by any chance?

    Could you please give me ideas how to fix the situation and how I could get more info / logs from the IAP client so that I could debug why 1. and 2. do not work.

    Thanks a lot! Your help will be appreciated.

  2. #2
    Nokia Developer Expert
    Join Date
    Oct 2007
    Posts
    441

    Re: IAP: "Unable to connect to the payment service"

    Hi

    IAP API does require that the device has a SIM card. Please re-check your problem with SIM card. Another point is -- you need to have recent Ovi store client installed on your device. Please check README.txt bundled with the SDK

  3. #3
    Registered User
    Join Date
    Feb 2009
    Posts
    8

    Re: IAP: "Unable to connect to the payment service"

    Hi Izinin. Thank you for the reply. I found out following:

    - You really have to put Q_DECLARE_METATYPE(IAPClient::ProductDataList) in the code, otherwise productDataReceived slot does not get called.
    - SIM card is required for testing with [testserver]
    - The date setting of the device should be correct. It can not be many months off. For some reason this makes the purchase flow fail as well.

    In app purchase seems to be working now in my application, pretty exciting.

  4. #4
    Nokia Developer Expert
    Join Date
    Oct 2007
    Posts
    441

    Re: IAP: "Unable to connect to the payment service"

    Hi

    Thank you for sharing , i put your finding to Q&A section http://www.developer.nokia.com/Commu...274#post893274
    also if you have a moment please have a look here , it may be useful as well http://support.publish.nokia.com/?cat=6&topic=57

Similar Threads

  1. "Problem with payment service" but still charged
    By razvanpetru in forum [Closed] Publishing to Nokia Store
    Replies: 3
    Last Post: 2011-05-13, 16:23
  2. "We are experiencing problems with the payment service"
    By postmfm in forum [Closed] Publishing to Nokia Store
    Replies: 20
    Last Post: 2010-08-27, 07:18
  3. Replies: 8
    Last Post: 2009-11-06, 21:42
  4. Replies: 13
    Last Post: 2009-06-09, 08:54
  5. Flash Lite loadVariables() "unable to connect"...
    By sicksadsun in forum [Archived] Flash Lite on Nokia Devices
    Replies: 1
    Last Post: 2008-08-23, 08:08

Posting Permissions

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