<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:clearspace="http://www.jivesoftware.com/xmlns/jive/rss" version="2.0">
  <channel>
    <title>Adobe Community: Message List - productStore.restoreTransactions() - doesn't return the transaction and productStore.makePurchaseTransaction(PRODUCT_ID) - nothing happens when trying to purchase purchased product</title>
    <link>https://forums.adobe.com/community/game_developers/adobe_gaming_sdk?view=discussions</link>
    <description>Most recent forum messages</description>
    <language>en</language>
    <pubDate>Sun, 28 Sep 2014 00:55:08 GMT</pubDate>
    <generator>Jive Engage 7.0.0.1  (http://jivesoftware.com/products/)</generator>
    <dc:date>2014-09-28T00:55:08Z</dc:date>
    <dc:language>en</dc:language>
    <item>
      <title>Re: productStore.restoreTransactions() - doesn't return the transaction and productStore.makePurchaseTransaction(PRODUCT_ID) - nothing happens when trying to purchase purchased product</title>
      <link>https://forums.adobe.com/message/6770179?tstart=0#6770179</link>
      <description>&lt;!-- [DocumentBodyStart:147cb78f-badc-4518-a7e8-128f073b6736] --&gt;&lt;div class="jive-rendered-content"&gt;&lt;p&gt;You are crazy,man!&lt;/p&gt;&lt;/div&gt;&lt;!-- [DocumentBodyEnd:147cb78f-badc-4518-a7e8-128f073b6736] --&gt;&lt;img src='/beacon?t=1415953330780' /&gt;</description>
      <pubDate>Sun, 28 Sep 2014 00:55:08 GMT</pubDate>
      <author>forums_noreply@adobe.com</author>
      <guid>https://forums.adobe.com/message/6770179?tstart=0#6770179</guid>
      <dc:date>2014-09-28T00:55:08Z</dc:date>
      <clearspace:dateToText>1 month 2 weeks ago</clearspace:dateToText>
      <clearspace:objectType>0</clearspace:objectType>
    </item>
    <item>
      <title>productStore.restoreTransactions() - doesn't return the transaction and productStore.makePurchaseTransaction(PRODUCT_ID) - nothing happens when trying to purchase purchased product</title>
      <link>https://forums.adobe.com/message/6650950?tstart=0#6650950</link>
      <description>&lt;!-- [DocumentBodyStart:b010bb3d-763e-40ea-bd12-49aabbde7253] --&gt;&lt;div class="jive-rendered-content"&gt;&lt;p&gt;Hi!&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;I have the a non-consumable in-app purchase product in my app. I use Adobe ProductStore ANE (com.adobe.ane.productStore) to work with Apple AppStore. &lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;The whole flow is:&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;1. I call productStore.restoreTransactions() to check if the user have purchased the product already&lt;/p&gt;&lt;p&gt;2. If RESTORE_TRANSACTION_SUCCESS fires I check if there's my PRODUCT_ID (product id of my in-app product) is in e.transactions&lt;/p&gt;&lt;p&gt;3. If RESTORE_TRANSACTION_COMPLETE fires without RESTORE_TRANSACTION_SUCCESS I check productStore.pendingTransactions if there's a transaction with precept and my PRODUCT_ID&lt;/p&gt;&lt;p&gt;4. If I have a pending transaction with my PRODUCT_ID and receipt != null&amp;nbsp; I call productStore.finishTransaction(pendingTransactionID)&lt;/p&gt;&lt;p&gt;4. If I didn't find get the transaction neither with productStore.restoreTransactions() nor with productStore.pendingTransactions then I decide that the user didn't purchase my in-app product, so I show him the LOCK_SCREEN when he can buy the product&lt;/p&gt;&lt;p&gt;5. If the user decides to but my product I call productStore.makePurchaseTransaction(PRODUCT_ID) (listening to PURCHASE_TRANSACTION_CANCEL, PURCHASE_TRANSACTION_FAIL, PURCHASE_TRANSACTION_SUCCESS events)&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&lt;span style="font-size: 10pt; line-height: 1.5em;"&gt;My flow doesn't works well.&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;br/&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-size: 10pt; line-height: 1.5em;"&gt;1. I've created a test user in iTunesConnect&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-size: 10pt; line-height: 1.5em;"&gt;2. I have number of devices for the test. &lt;br/&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-size: 10pt; line-height: 1.5em;"&gt;3. When I run my app very first time in a device I get the LOCK_SCREEN and when I tap the lock I get the iOS popup with confirm purchase, I confirm my purchase with the test user credits and get the PURCHASE_TRANSACTION_SUCCESS event&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="line-height: 1.5em; font-size: 10pt;"&gt;4. When I remove my app from the device and run it I can see in the &lt;/span&gt;debugger&lt;span&gt;&lt;span style="line-height: 1.5em; font-size: 10pt;"&gt; that I get a transaction with my PRODUCT_ID and &lt;/span&gt;receipt != null so I know the I've already &lt;span style="line-height: 1.5em; font-size: 10pt;"&gt; purchased the app, I call productStore.finishTransaction(pendingTransactionID) (Maybe I don't have to do this?) and then I get RESTORE_TRANSACTION_SUCCESS event and I can continue the game.&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span&gt;&lt;span&gt;&lt;span style="line-height: 1.5em; font-size: 10pt;"&gt;5. When I remove my app from the device again and install it again, I don't get any transaction when I call productStore.restoreTransactions() and I don't have any ransaction with my PRODICT_ID and receipt != null in&amp;nbsp; productStore.pendingTransactions. So I decide that I didn't &lt;/span&gt;purchase&lt;span style="line-height: 1.5em; font-size: 10pt;"&gt; the product, show me the LOCK_SCREEN, and &lt;strong&gt;when I call&amp;nbsp; productStore.makePurchaseTransaction(PRODUCT_ID), nothing happens&lt;/strong&gt;. No popup with confirmation appears, no event fires, nothing. My app stacks.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span&gt;&lt;span style="line-height: 1.5em; font-size: 10pt;"&gt;&lt;br/&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span&gt;&lt;span style="line-height: 1.5em; font-size: 10pt;"&gt;6. When I install the app in the second device and use the same credits that I've used in the first device I get the transaction in productStore.restoreTransactions()&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span&gt;&lt;span style="line-height: 1.5em; font-size: 10pt;"&gt;7. When I remove the app from the second device, install it there again and run it I got the same that in point 5.&lt;br/&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;What do I do wrong?&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Thank you in advance, &lt;/p&gt;&lt;p&gt;Olga&lt;/p&gt;&lt;/div&gt;&lt;!-- [DocumentBodyEnd:b010bb3d-763e-40ea-bd12-49aabbde7253] --&gt;</description>
      <pubDate>Mon, 18 Aug 2014 15:47:41 GMT</pubDate>
      <author>forums_noreply@adobe.com</author>
      <guid>https://forums.adobe.com/message/6650950?tstart=0#6650950</guid>
      <dc:date>2014-08-18T15:47:41Z</dc:date>
      <clearspace:dateToText>2 months 4 weeks ago</clearspace:dateToText>
      <clearspace:replyCount>1</clearspace:replyCount>
      <clearspace:objectType>0</clearspace:objectType>
    </item>
  </channel>
</rss>

