dotpot / InAppPy

Python In-app purchase validator for Apple AppStore and GooglePlay.
MIT License
207 stars 50 forks source link

Be able to grab the vendor user ID #47

Closed Natim closed 5 years ago

Natim commented 5 years ago

With Google we can use the developerPayload to pass an unique identifier so that we can link subscriptions received from Pub/Sub with our vendor User.

With Apple, it should be possible to grab a applicationUsername but I couldn't find out how to read that using InAppPy.

dotpot commented 5 years ago

@Natim Thanks for contribution. Im not sure, maybe you're talking about shared_secret ?

Othervise information you're looking might be located in the raw response from apple.

Natim commented 5 years ago

Yeah I guess you can't return things that Apple doesn't return via their API.

You can set stuff on applicationUsername of the SKPayment object that you create, however, it won’t be there on the SKPaymentTransaction.payment once it is returned.