Sunday, December 15, 2024
HomeiOS Developmentios - Apple server to server notification calculating lifetimeDollarsPurchased for consumption requests

ios – Apple server to server notification calculating lifetimeDollarsPurchased for consumption requests


When apple sends a notification with the kind CONSUMPTION_REQUEST I want to collect particulars concerning the customers spending historical past like the entire quantity spent (subscriptions + consumables)

I retailer all particulars relating to subscription transactions, and consumable transactions in my db.

After I get a CONSUMPTION_REQUEST notification, it might both be for a subscription or a consumable. (There are different sorts however these are the one ones I care about).

If its a subscription CONSUMPTION_REQUEST it returns particulars for the subscription and I can discover all subscription transactions in my db referring to that to get the entire {dollars} spent on subscriptions for that consumer utilizing the originalTransactionId. But it surely supplies me 0 particulars I can use to search out consumable transactions for a similar consumer.

How on earth am I alleged to calculate the entire consumables worth if apple doesnt even give me the AppleId of the consumer whos making the request.

RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Most Popular

Recent Comments