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 ...

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

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.