I have created one reference IAP Product on iTunes connect, but I want to know if there is any way to add a new product or replace with new product name and price to an existing Product programmatically.
I am getting a number of products from Server side and there is a chance to increase the number of products in future.
Related
i know how to create and use product IDs for a single non-consumable IAP.
I have searched for more than 2 days but can't find the answer.
my app has about 1000s list of books. when users click on a book cell(table view cell), an IAP calls and the user can pay for each.
is it possible to create product id dynamically in code at run time?
if not what is an alternative way to do to create a product id for each book cell?
Note: I don't want to use a credit system, because I want to sell each book individually.
Thank you
I have installed Run Subscription Payments with Stripe using this tutorial: https://firebase.google.com/products/extensions/firestore-stripe-subscriptions.
Now, when I add product in stripe it gets added in Firestore:
Now, as you can see the product "apple" above with product-id. "prod_KWe22kb9FUWoxH" price is added in firestore below:
But when in the below figure, manually, I add product "app" below with product-id. "4Y2kEkf5Ks1w2PDRNzYR" prices etc. is added in firestore below, it does not get added to stripe:
I have also updated the rules to both read and write products as you can see in the screenshot below:
So, why does product "app" with product-id. "4Y2kEkf5Ks1w2PDRNzYR" and prices etc does not get added to stripe ?
According to your product that is not showing the details, it was probably added incorrectly, the product does not begin with “prod_” followed by the ID.
Stripe Product Setup: Stripe immediately generates a distinct identification for the new product, which is prefixed with prod_.
Reviewing your case I found documentation that adding the product with the issue could help.
To create a product:
Go to the Product tab in the Dashboard and click +Add product to create a product. Select a One-time or Recurring product type, then fill out the remaining fields in the product details section.
When you are done, click Save and continue, or Save product at the top right.
To create prices:
After saving a newly generated product, go to the product's information page and click +Add price. You may also locate +Add price by clicking on any pre-existing product in your list.
To enter the price details in the “Add a new price window” I found the following documentation: Create prices.
The guide that I followed is Products and Prices management.
Additional tutorial using Stripe and Firebase.
I'm trying to sell digital content from third parties within an iOS app. I'm aware Apple will get 30%. In my app, the seller gets a percentage.
The problem is that I need to create a product ID per every product that I sell with an in-app-purchase. If I don't create one I don't know who is buying what and what to pay to whom.
I can create a product ID manually if I have a few sellers, but I have 1000 this can become a problem.
Does anybody know how to do this?
You cannot do this. Each product ID has to be created through iTunes connect, and for each product ID there is a review process. There is no way to create an iTunes product ID from within an app, because Apple doesn't allow this.
I have two apps in my iTunesConnect account, both of them use In-App purchases. For both of them I need to create product with apriopriate product identifiers. For first app I created a product with apriopriate identifier, but that product should be in a second app.
So I removed that product from the first app, and then I tried to create the same one for the second one, but then error arised:
The product ID you entered has already been used. Enter a unique product ID and try again.
I really need the same product identifier in my second app. How can I reset or make it able to recreate for a different app?
Simply, it is impossible> Direct answer from Apple:
"After you submit your product ID, you cannot edit it or reuse it for another In-App Purchase. We are not able to reset the In-App Purchase product IDs for your account."
Say, in my app, I offer books.
Correct me if I am wrong, book are non-Consumable products.
Say, every book costs 1$. Do I need to have multiple products in itunes? Or can I have one product and repurchase it (reuse it's product code), for every new request to buy another book.
No you can't use the same ID for every book, you will get refused with a warning message when one non-consumable is resold.
Have a look at the overview of in-app purchases below:
https://developer.apple.com/library/ios/#documentation/NetworkingInternet/Conceptual/StoreKitGuide/APIOverview/OverviewoftheStoreKitAPI.html#//apple_ref/doc/uid/TP40008267-CH100-SW1