Storing Deals in the Wallet

Deals are redeemable offers that the user can save to the Wallet and later present to a vendor for redemption.

To add a deal to the Wallet, create a new Deal object and call its SaveAsync method, as demonstrated:

Deal deal = new Deal(coupon.Id)    {        DisplayName = "10% off!",        Description = "Get 10% any item purchased.",        IssuerName = "Unleashed",        IssuerWebsite = new Uri(""),        IsUsed = false,        MerchantName = "Unleashed",        TermsAndConditions = "Valid at participating locations only.",        Code = "123454321",        ExpirationDate = DateTime.Now.AddMonths(3)    };await deal.SaveAsync();


The DisplayName property must be ...

Get Windows® Phone 8 Unleashed now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.