Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 12 Next capture
2021 2022 2023
1 capture
12 Jun 22 - 12 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
0
Question by deepesh · Jun 20, 2017 at 01:14 PM · in app purchaseamazonsubscription

Unity IAP amazon subscriptions

Hi guys,

I am trying to setup subscriptions(setup: one to many) in our game for multiple platforms. However for Amazon, the model for subscription consist of item ID as well as subscriptionParent ID. While adding the Product Definition in biller I dont see anywhere where I can add the parent ID for the product.

And I am using WriteSandboxJSON command for amazon at the time of initialize.

Q1- Is there a way I can add parent ID in product? else the file generated says parent ID as "does.not.exist".

I also tried not to add WriteSandboxJSON command and download sdktester from the dashboard. So parent ID cam proper.

Q2. How do app know if sandbox is enabled for amazon? Would it be OK? when the app goes live. Considering a scenario where I have that sdktester in my root sd card and I download app from Amazon store. would ID will come proper or like sandbox?

Q3. For Amazon if a purchase for Subscription is pending, it is not showing up next time I initialize UnityIAP. Is this natural? Also how am I suppose to use "NotifyUnableToFulfillUnavailableProduct"?

Thanks in advance!

Deepesh

Comment
Add comment
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

1 Reply

· Add your reply
  • Sort: 
avatar image
2

Answer by nathanf-unity · Jul 17, 2017 at 10:43 PM

Hi Deepesh,

Amazon's app store uses a parent-child model for subscription products that is unlike other app stores. Working with this model in Unity IAP does require a slightly different structure for your products. The best way to handle it is to add both the parent and the child skus as products in your app.

Once you have added both the parent and child skus as products, you should see that restoration attaches the receipt to the parent product. Purchases can be initiated with either the parent or child product (the store's purchase UI will allow the user to choose which child sku to purchase). Product metadata like description and price are attached to the child sku.

So, to answer your questions:

Q1 — Unity IAP does not have a way to directly specify the parent-child relationship between products. You should add both skus as products. Your app is responsible for understanding the relationship and determining when to use the child product (accessing metadata like price or description) and when to use the parent product (checking for a restored receipt).

Q2 — Your app will try to connect to Amazon's App Tester only if it is side-loaded on the device. If you install the app through the app store or through Amazon's live app testing service then it will not connect to the App Tester app. It is a good idea to test your app through Amazon's Live App Testing service if you can. https://developer.amazon.com/public/apis/earn/in-app-purchasing/docs-v2/testing-iap

Q3 — You should see the pending subscription the next time you initialize Unity IAP. Try adding both the parent and child skus as products, and see if perhaps the parent sku is is sent in this case. If this does not solve the problem, you can contact support and we will be happy to try to help you out.

Thanks

—Nathan Forget, Lead Developer, Unity IAP

Comment
Add comment · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this Question

Answers Answers and Comments

66 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

Amazon IAP sandbox testing issue 0 Answers

i need a script to remove ads by with an in app purchase subscrition 0 Answers

Does unity IAP pay subscriptions automatically? 0 Answers

Simple In App Purchase on iOS 9 Answers

ERROR: SoomlaStore failure: IabActivity is destroyed during purchase. 0 Answers


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges