question

newuser-b9b263f3-b341-49d5-89ce-7681ebec1b88 avatar image

GetPurchaseUpdates sometimes doesn't return purchased item that was not fulfilled

We used Amazon In App Purchasing (2.0) (Unity SDK), When I call GetPurchaseUpdates(true), sometimes doesn't return purchased item that was not fulfilled. GetPurchaseUpdatesResponse Status

is "SUCCESSFUL" but receipts is empty.

Testing environment: Live App Testing

Thanks.

iappurchasing
10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Levon@Amazon avatar image
Levon@Amazon answered

Hi there,

During the purchase flow, do you call notifyFulfillment() to complete the purchase? Can you describe in more details when / how a purchase is done, and then when afterwards you call GetPurchaseUpdates()? Thanks!

10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

newuser-b9b263f3-b341-49d5-89ce-7681ebec1b88 avatar image
newuser-b9b263f3-b341-49d5-89ce-7681ebec1b88 answered

Thanks for your reply.

1. Call AmazonIapV2Impl.Instance.Purchase(request) start to purchase.

2. Follow the Amazon process to complete the payment.

3. Exit APP after purchase. (still staying in the Amazon interface and not call notifyFulfillment())

4. Start the APP and call GetPurchaseUpdates(true), will then received callback, but receipts is sometimes empty.

10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

newuser-ba484d6c-355b-42c4-8eef-8d2903fc9431 avatar image
newuser-ba484d6c-355b-42c4-8eef-8d2903fc9431 answered

Hello Levon, wanted to follow up on this issue. Is there a way we can resolve this?

Thanks,

Michael

10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Levon@Amazon avatar image
Levon@Amazon answered

Hi there,

If the user closes / kills the app before purchase completes -- its possible they didn't actually complete the purchase. That would explain why it happens sometimes -- it depends on when they kill the app.

If you are going to replicate this again and see that this happening all the time -- then please specify the exact time (in UTC) when this happened so we could investigate this on our side. Ideally, login to your Dev Portal account and specify your app name / ID along with the IAP SKU affected and the exact time it happened. Thanks!

10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

newuser-f47554d8-d268-4dea-b8dc-c7a0a684798a avatar image
newuser-f47554d8-d268-4dea-b8dc-c7a0a684798a answered

Hello there, using SDK 2.0.76 I still see these kind of problems on our end too (mainly on the Live App Testing too).


I our case we have the following steps:

  1. Initialize a purchase
  2. Put the app in background
  3. See the confirmation pop-up
  4. Kill the app (we have a pending purchase)
  5. Open the app
  6. Call `PurchasingService.getPurchaseUpdates(false)`
  7. On `onPurchaseUpdatesResponse` we have no error but the receipt list is empty
  8. Wait 30-60s
  9. Call `PurchasingService.getPurchaseUpdates(false)` again
  10. `onPurchaseUpdatesResponse` we have now the receipt for the one purchase which was pending


Can somebody confirm me if this is a bug, a delay from the LAT environment, or something else?


Thanks in advance.

10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.