f25ad7f306
metadata update |
||
---|---|---|
Images | ||
YetAnotherShoppingApp | ||
.gitattributes | ||
.gitignore | ||
CONTRIBUTING.md | ||
LICENSE | ||
README.md | ||
ThirdPartyNotices.txt | ||
YetAnotherShoppingApp.sln |
README.md
topic | languages | products | |||
---|---|---|---|---|---|
sample |
|
|
Payment Request API Sample App
A mini-app that presents a basic shopping experience where a user can buy emoji. This app shows how to use the Payment Request APIs to implement the checkout experience. It also demonstrates a basic multi-page XAML UI that uses the Model-View-ViewModel (MVVM) pattern.
This sample runs on the Universal Windows Platform (UWP).
Features
Payment Request API Sample App demonstrates:
- Using the Payment Request APIs (Windows.ApplicationModel.Payments)
Universal Windows Platform development
Requirements:
- Windows 10 Creators Update - 1703 (or later)
- Visual Studio 2017 (or later)
- Windows SDK - Build 15063 (or later)
Additionally, to be informed of the latest updates to Windows and the development tools, join the Windows Insider Program.
Running the sample
Note: The platform target currently defaults to ARM, so be sure to change that to x64 or x86 if you want to test on a non-ARM device.
The default project is YetAnotherShoppingApp and you can Start Debugging (F5) or Start Without Debugging (Ctrl+F5) to try it out. The app will run in the emulator or on physical devices.
Code at a glance
If you’re just interested in code snippets for certain API and don’t want to browse or run the full sample, check out the following files for examples of some highlighted features:
- WindowsPaymentOperation.cs
- Uses PaymentMediator.SubmitPaymentRequestAsync to initiate the checkout experience.
- BasicCardPaymentProtocol.cs
- Handles the boilerplate of the W3C Basic Card Payment Method.