0
내 두 번째 windows 8 metro style javascript 앱을 배포 할 준비가되었으며 앱 구매에 포함시키고 싶습니다. 난 내가 http://msdn.microsoft.com/en-us/library/windows/apps/hh694067.aspx윈도우 8 메트로 인형 구입
function appInit()
{
// some app initialization functions
// Get current product object
// Execute only one of these statements.
// The next line is commented out for testing.
// currentApp = Windows.ApplicationModel.Store.CurrentApp;
// The next line is commented out for production/release.
currentApp = Windows.ApplicationModel.Store.CurrentAppSimulator;
// We should have either a real or a simulated CurrentProduct object here.
// Get the license info
licenseInformation = currentApp.licenseInformation;
// other app initializations function
}
function buyFeature1() {
if (!licenseInformation.productLicenses.lookup("featureName").isActive)
{
currentApp.requestProductPurchaseAsync("featureName", false).then(
function() {
// the in-app purchase was successful
},
function() {
// The in-app purchase was not completed because // there was an error.
});
}
else
{
// The customer already owns this feature.
}
}
여기에서 가져온하지만 아무것도 이것은 초보자 질문 알고 이뤄져야 보인다 다음 코드로 구현하는 시도. 하지만 누군가가 전체 간단한 작업 솔루션을 제공 할 수 있다면 기뻐할 것입니다. 문서를 읽고 샘플을 다운로드 했으므로. 내 storeproxy.xml 파일 설정도 있습니다.