Languages

Menu
Sites
Language
In-App Purchase Programming: IAP Service Control

Hello,
In order to test the In-App Purchase(IAP) Service Control using the Tizen web simulator, the web sample application source code is downloaded at https://developer.tizen.org/development/tools/extension-sdk. According to the "In-App Purchase Programming Guide", the IAP Service Control can be accessed using an aliased application ID of the "org.tizen.inapppurchase.iapservice" application ID.
I added "console.log ( )" in ripple.js: 96064 ~ 96082 lines of ripple.js

===================================================================
function launchAppControl(appControl, id, successCallback, errorCallback, replyCallback) {
if (!_security.launchAppControl) {
throw new WebAPIException(errorcode.SECURITY_ERR);
}

t.ApplicationManager("launchAppControl", arguments, true);

window.setTimeout(function () {
var isFound = false, appId, htmlContent;

if (id) {
console.log(id);                                    // inserted
console.log(_data.applications[id]); // inserted
if (!_data.applications[id]) {
if (errorCallback) {
errorCallback(new WebAPIError(errorcode.NOT_FOUND_ERR));
}
return;
}

===================================================================
Then, the log shows that "_data.applications[id]" is not defined when id is "org.tizen.inapppurchase.iapservice".
How can I fix this problem?
 

Edited by: Jeong on 28 Feb, 2017

Responses

2 Replies
André Reus

What have you changed in ripple.js is not clear here. 

Jeong

I just added "console.log( )".