added GetExistingPurchases API. Payment::StopEvents() was modified after using single thread.
The code should be working for GetExistingPurchases and CancelSubscription