Search Feedback

21
votes

Unity IAP: Differentiate between restored and regular purchase

General

-

-

Now in both case PurchaseProcessingResult ProcessPurchase(PurchaseEventArgs args) function gets called, but it would be important to make a difference between restored purchase and a new one. For example I want to play an animation, when a new product is purchased, but for restored purchase I don't want to do that.

Comments (2)

  1. 4ff331252f29470ced7466bb5577f74b?d=mm

    numberkruncher

    Feb 25, 2017 14:17

    +1 This is a necessary addition.

  2. 9680b651af7d59e4dd4d6676a9bd4e81?d=mm

    flashwade

    Jan 13, 2017 00:01

    Yeh. I agree with you. In fact purchase is different to restoration. So we need kind of flag valuable.

Your opinion counts

Help us make things better. Share your great idea for improving Unity or vote for other people’s.

Log in to post a new idea

Categories

All

(8676)

2D

(211)

Ads

(34)

AI & Navigation

(55)

Analytics

(85)

Animation

(288)

Asset Store

(202)

Assets

(479)

Audio

(149)

Cloud Build

(92)

Collaborate

(27)

Docs & Tutorials

(186)

Editor

(2009)

Everyplay

(13)

Game Performance Reporting

(10)

General

(788)

Graphics

(729)

GUI

(346)

Input

(140)

Licensing

(72)

Networking

(151)

Physics

(319)

Platforms

(397)

Profiling & Optimization

(66)

Runtime

(151)

Scripting

(972)

Terrain

(148)

WebGL

(128)