언어 설정

Menu
Sites
Language
IAP on ver2.2.1

Hello,

The IAP API doesn't work on Tizen ver2.2.1

 

I updated Tizen ver2.2.1.

(http://download.tizen.org/releases/2.2.1/latest/images/RD-PQ-REF/tizen-2.2_20131107.3_RD-PQ-REF-wifi.tar)

I tried run sample code-Sample_Web with modifying the _itemGroupId with another I registered.

It is running and It returns country list without problem.

However it returns the code 9000 when calling 'get_item_list'

 

I tried with other parameters but It always returns 9000.

Below is the parameters list I have tried.

Japan

{"_itemGroupId":"10000000****","_mode":1,"_mcc":"440","_mnc":"01","_deviceModel":"GT-I8800" ...

{"_itemGroupId":"10000000****","_mode":1,"_mcc":"440","_mnc":"01","_deviceModel":"RD-PQ" ...

{"_itemGroupId":"10000000****","_mode":1,"_mcc":"440","_mnc":"01","_deviceModel":"" ...

Russia

{"_itemGroupId":"10000000****","_mode":1,"_mcc":"250","_mnc":"01","_deviceModel":"GT-I8800" ...

{"_itemGroupId":"10000000****","_mode":1,"_mcc":"250","_mnc":"01","_deviceModel":"RD-PQ" ...

{"_itemGroupId":"10000000****","_mode":1,"_mcc":"250","_mnc":"01","_deviceModel":"" ...

No mcc

{"_itemGroupId":"10000000****","_mode":1,"_mcc":"","_mnc":"","_deviceModel":"GT-I8800" ...

{"_itemGroupId":"10000000****","_mode":1,"_mcc":"","_mnc":"","_deviceModel":"RD-PQ" ...

{"_itemGroupId":"10000000****","_mode":1,"_mcc":"","_mnc":"","_deviceModel":"" ...

 

 

Can I get some advice about this?

 

Thanks,

Responses

8 댓글
Raghavendra Reddy Shiva


The error code is for "ProcessError" and this might be due to the authentication failure.

You need to sign-in to the Tizen seller account before invoking the IAP operations (like Get item list or get purchased list), else it doesn't go for authentication.

Assuming you have below packages installed (https://developer.tizen.org/downloads/add-on-sdks#in-app-purchase),

  • IAP Client TPK 1.0.8
  • Tizen Account TPK

Did it ever work for you, before upgrading to Tizen 2.2.1 image ? 
Also please share the "sdb dlog" messages.

Unseon Ryu

I think the TPKs don't matter because I have already Installed the above 2 packages and it returns country code list.

I have confirmed the Sample_Web is working on Tizen 2.2.0 + IAP Client TPK 1.0.8 + Account TPK.

 

Here I send sdb logs when calling get_item_list from Sample_Web

11-19 11:23:24.470 : DEBUG / ConsoleMessage ( 4575 : 4575 ) : file:///opt/usr/apps/clouds0002/res/wgt/js/iap.js:44:success
11-19 11:23:24.605 : ERROR / Tizen::Telephony ( 11741 : 11741 ) : result Tizen::Telephony::_SimInfoImpl::Construct()(73) > [E_DEVICE_UNAVAILABLE] The operation failed because the SIM card is not ready.
11-19 11:23:24.605 : ERROR / Tizen::Telephony ( 11741 : 11741 ) : result Tizen::Telephony::SimInfo::Construct()(73) > [E_DEVICE_UNAVAILABLE] Propagating.
11-19 11:23:24.640 : ERROR / Tizen::Telephony ( 11741 : 11741 ) : result Tizen::Telephony::_SimInfoImpl::Construct()(73) > [E_DEVICE_UNAVAILABLE] The operation failed because the SIM card is not ready.
11-19 11:23:24.640 : ERROR / Tizen::Telephony ( 11741 : 11741 ) : result Tizen::Telephony::SimInfo::Construct()(73) > [E_DEVICE_UNAVAILABLE] Propagating.
11-19 11:23:24.680 : ERROR / Tizen::Telephony ( 11741 : 11741 ) : result Tizen::Telephony::_SimInfoImpl::Construct()(73) > [E_DEVICE_UNAVAILABLE] The operation failed because the SIM card is not ready.
11-19 11:23:24.680 : ERROR / Tizen::Telephony ( 11741 : 11741 ) : result Tizen::Telephony::SimInfo::Construct()(73) > [E_DEVICE_UNAVAILABLE] Propagating.
11-19 11:23:24.755 : ERROR / Tizen::System ( 2668 : 2668 ) : static result Tizen::System::_DeviceId::GetId(Tizen::Base::String&, int)(168) > It is failed to get IMEI.
11-19 11:23:24.755 : ERROR / Tizen::System ( 2668 : 2668 ) : virtual void Tizen::System::_SystemService::OnRequestOccured(Tizen::App::AppId, int, Tizen::Base::Collection::ArrayList*, Tizen::Base::Collection::ArrayList*)(295) > It is failed to get telephony, wifi, bluetooth information.
11-19 11:23:24.755 : ERROR / Tizen::Base::Collection ( 11741 : 11741 ) : virtual const Tizen::Base::Object* Tizen::Base::Collection::ArrayList::GetAt(int) const(238) > [E_OUT_OF_RANGE] The index(3) MUST be greater than or equal to 0 and less than the number of elements(3).
11-19 11:23:24.755 : ERROR / Tizen::System ( 11741 : 11741 ) : static result Tizen::System::_SystemInfoImpl::GetSysInfo(const Tizen::Base::String&, Tizen::Base::String&)(478) > It is failed to receive IMEI value on IPC response message.
11-19 11:23:24.820 : ERROR / Tizen::Telephony ( 11741 : 11741 ) : result Tizen::Telephony::_SimInfoImpl::Construct()(73) > [E_DEVICE_UNAVAILABLE] The operation failed because the SIM card is not ready.
11-19 11:23:24.820 : ERROR / Tizen::Telephony ( 11741 : 11741 ) : result Tizen::Telephony::SimInfo::Construct()(73) > [E_DEVICE_UNAVAILABLE] Propagating.
11-19 11:23:24.890 : ERROR / Tizen::System ( 2668 : 2668 ) : static result Tizen::System::_DeviceId::GetId(Tizen::Base::String&, int)(168) > It is failed to get IMEI.
11-19 11:23:24.890 : ERROR / Tizen::System ( 2668 : 2668 ) : virtual void Tizen::System::_SystemService::OnRequestOccured(Tizen::App::AppId, int, Tizen::Base::Collection::ArrayList*, Tizen::Base::Collection::ArrayList*)(295) > It is failed to get telephony, wifi, bluetooth information.
11-19 11:23:24.890 : ERROR / Tizen::Base::Collection ( 11741 : 11741 ) : virtual const Tizen::Base::Object* Tizen::Base::Collection::ArrayList::GetAt(int) const(238) > [E_OUT_OF_RANGE] The index(3) MUST be greater than or equal to 0 and less than the number of elements(3).
11-19 11:23:24.890 : ERROR / Tizen::System ( 11741 : 11741 ) : static result Tizen::System::_SystemInfoImpl::GetSysInfo(const Tizen::Base::String&, Tizen::Base::String&)(478) > It is failed to receive IMEI value on IPC response message.
11-19 11:23:25.555 : ERROR / Tizen::Net::Http ( 11741 : 11741 ) : result Tizen::Net::Http::_HttpTransactionImpl::Dispose()(284) > [E_INVALID_STATE] HttpTransaction[0] is already closed.
11-19 11:23:25.560 : DEBUG / ConsoleMessage ( 4575 : 4575 ) : file:///opt/usr/apps/clouds0002/res/wgt/js/iap.js:23:OnItemInformationListReceived
11-19 11:23:25.560 : DEBUG / ConsoleMessage ( 4575 : 4575 ) : file:///opt/usr/apps/clouds0002/res/wgt/js/main.js:116:OnItemInformationListReceived: 9000
11-19 11:23:25.955 : ERROR / Tizen::Net::Http ( 11741 : 11741 ) : result Tizen::Net::Http::_HttpTransactionImpl::Dispose()(284) > [E_INVALID_STATE] HttpTransaction[1] is already closed.
Raghavendra Reddy Shiva

I couldn't find "TizenAccountService" runnig from your logs. Can you try signing-in to the Tizen accounts and give a try ?

Also please provide logs for below steps,

  •   Login to Tizen account
  •   Launch the sample_web app
  •   Choose Get Item List
  •   Get Purchased Item
Unseon Ryu

I tried it as your reply.  I failed with the same log messages and no messages related TizenAccountService.

Is it needed to login to Tizen account to call get_item_list?

Tizen account was needed only when calling get_purchased_item_list or puchase function on Tizen 2.2.0.

 

Have you already confirmed whether the IAP Samples are working on Tizen 2.2.1?

Could you let me know the expected log messages when get_item_list has been called?

Any other info you need to solve my problem?

 

Thanks,

 

Raghavendra Reddy Shiva

The sample is not working with 2.2.1 image. Have raised a JIRA ticket for the bug as below,

https://bugs.tizen.org/jira/browse/TDIST-609

Please follow this JIRA for updates from the respective team.

Unseon Ryu

Thank you for reporting bug.

I will keep watching it.

Mallikarjun Hunalli

Tizen verion 2.2.1 has a issue with "SystemInfo" API's. SystemInfo API's are not returning the "DeviceModel", Hence IAPClient is failing.

We have escalated the issue with "SystemInfo" team. Could be fixed in next Tizen release. Until then Developer's can pass the  _deviceModel="Ref.Device-PQ" for testing there application.

Alexander AVSukhov

Hello,

It is planning to support in the next version(1.1.1 or later).