...
In-App purchase fulfillment API
API that verifies the payment and unlocks gated content
Possible data required for this API:
Transactional details like receipt information or Transaction ID
Basket, which can be obtained for a user against a site
We would probably need to alter or create a similar API to the
BasetAddItemsView
API that returns a JSON response for product addition to the basket insteadof a redirect that is happening right now.
In addition to this, we would need to be able to distinguish between in-app purchase orders and web orders.
The most straightforward way of doing this is to add a boolean flag to theOrder
model. We could add acard_type
choice to the already presentSource
model with the relevant information about android/iOS IAP for this purpose.
API Flow:
Following is the proposed API flow:
...