public bool RestoreWasVerified(CommerceServiceEvents.RestoreVerified rv) { if (rv.Success) { } return(false); }
public bool RestoreWasVerified(CommerceServiceEvents.RestoreVerified rv) { if (rv.Success) { applyMembership(rv.Data); if (this.OnRestoreSuccess != null) { this.OnRestoreSuccess(); } Service.Get<ICPSwrveService>().Action("restore_purchase", "success"); } else { string format = "Membership.Purchase.Restore.NothingToRestore"; ApplicationService.Error obj = new ApplicationService.Error("Membership.Purchase.RestoreMessageTitle", format); this.OnRestoreFailed(obj); Service.Get<ICPSwrveService>().Action("restore_purchase", "nothing_to_restore"); } return false; }