×

Discussion Board

Results 1 to 7 of 7
  1. #1
    Nokia Developer Expert
    Join Date
    Nov 2011
    Posts
    6

    Question In-app purchasing - Repeating a purchase

    Hi,

    I’d like to know how to config IAP item so that it can be purchased several times. It’s pretty similar to this design:
    https://projects.developer.nokia.com...23CCA5222.html

    The problem is when I try repeating a purchase for the same productID, the payment process can’t be done because IAP system assumes that the item has already been purchased. Moreover, using NO_FORCED_RESTORATION flag doesn’t help:

    m_pIAPManager. purchaseProduct(m_strProductID, IAPClientPaymentManager.NO_FORCED_RESTORATION);

    Can anybody help with a solution?

    Thanks a lot.

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

    Re: In-app purchasing - Repeating a purchase

    Hi ctphong82

    Unless your application get published and processed by OVI Store it behaves like it is DRM protection model in test mode -- i.e. you cannot buy an item multiple times and IAPClient::NO_FORCED_RESTORATION flag has no effect. This is a bit confusing but it is per IAP design.

    To test multiple purchases in test mode set the contents of TEST_MODE.TXT to the following:

    Code:
    [testserver]
    testMode=purchase
    Regards,
    Igor

  3. #3
    Nokia Developer Expert
    Join Date
    Nov 2011
    Posts
    6

    Re: In-app purchasing - Repeating a purchase

    Hi izinin,

    Unless your application get published and processed by OVI Store it behaves like it is DRM protection model in test mode -- i.e. you cannot buy an item multiple times and IAPClient::NO_FORCED_RESTORATION flag has no effect. This is a bit confusing but it is per IAP design.
    First of all, I'm grateful that you can confirm it is the expected behavior during test mode.

    Secondly, I've tried to edit the TEST_MODE.TXT as your suggestion but still I receive 'You have already purchased this item' in the second purchase. Is it expected behavior or there is other thing that I need to config? FYI, I've tested on Asha 303.

    Great thanks.

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

    Re: In-app purchasing - Repeating a purchase

    hi

    make sure TEST_MODE.txt is deployed to your device in the application private folder. I checked that approach and it does work.

    Regards,
    Igor

  5. #5
    Nokia Developer Expert
    Join Date
    Nov 2011
    Posts
    6

    Re: In-app purchasing - Repeating a purchase

    Hi Igor,

    Can you please show me how to deploy TEST_MODE.txt into the application private folder? I've used file explorer application to check and there is only the icon file inside. Please note that I've tried to use Nokia PC Suite to install my jar file to the phone memory/sd card.

    Thanks,
    Cao Phong

  6. #6
    Nokia Developer Moderator
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    28,671

    Re: In-app purchasing - Repeating a purchase

    You are talking about different platforms
    - Ctphong82: dot-s in the code (method, constant), lower case purchaseProduct suggest Java, but in a very invisible way. Later appears Asha 303, and now jar. So it is Java
    - Izinin: C++ scope operator :: in the first post, and private folder later: the posts are about the C++ (Qt) API on Symbian devices.

  7. #7
    Nokia Developer Expert
    Join Date
    Nov 2011
    Posts
    6

    Re: In-app purchasing - Repeating a purchase

    Nice catch . I didn't notice that. Anyway, I just want to know whether the IAP system allows us to purchase one productID several times or not. And it's already been made clear by Igor.

    Thanks a lot, guys!

Similar Threads

  1. Repeating operation under Timer
    By aavi in forum Symbian
    Replies: 6
    Last Post: 2010-01-10, 09:03
  2. About repeating key events, help me.
    By nadis in forum Symbian
    Replies: 2
    Last Post: 2009-07-22, 11:20
  3. How to best represent repeating data in CenRep
    By AshramArzephucque in forum Symbian
    Replies: 2
    Last Post: 2007-10-28, 08:54
  4. Sound not played when Key is repeating
    By inamru in forum Symbian Media (Closed)
    Replies: 4
    Last Post: 2007-02-13, 10:58
  5. Repeating Appointments for VCalendar
    By sysin in forum Smart Messaging
    Replies: 0
    Last Post: 2004-08-15, 18:59

Posting Permissions

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