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 Payment Instruments in the Wallet

Payment Instruments include banking cards, such as credit and debit cards, and financial payment services, which are capable of performing a financial transaction.

The following example demonstrates the creation of a PaymentInstrument object that represents a credit card:

var instrument = new PaymentInstrument(card.Id.ToString())                {                    AccountNumber = "123456",                    CustomerName = "Alan Turing",                    ExpirationDate = DateTime.Now.AddMonths(3),                    DisplayName = "Unleashed Card",                    PaymentInstrumentKinds = PaymentInstrumentKinds.Credit                };

Wallet items, such as the PaymentInstrument ...

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