O'Reilly logo

Windows® Phone 8 Unleashed by Daniel Vaughan

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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("http://example.com"),        IsUsed = false,        MerchantName = "Unleashed",        TermsAndConditions = "Valid at participating locations only.",        Code = "123454321",        ExpirationDate = DateTime.Now.AddMonths(3)    };await deal.SaveAsync();

Note

The DisplayName property must be ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required