Recently, I encountered an interaction in an app where a user can purchase any quantity ranging from 1 to 100 for a digital product priced at 9.9 yuan in its product details page, using Apple's in-app payment (IAP) system.
From my understanding, there are possibly several schemes to achieve this:
1. Configuring the backend to create 100 individual products priced from 1 to 100 yuan. However, Apple's backend may not support creating a product priced at 29.7 yuan for a quantity of 3.
2. Creating 100 products and adding each quantity to the payment queue. This method requires the user to make multiple payments, which seems impractical.
I would like to discuss this further with fellow developers to explore possible solutions. Any input would be appreciated.