top

'Tizen::TV::Service::Billing::BillingPlugin' class Reference

Events

BillingClientClosedEventHandler BuyItemEventHandler
Billing Transaction Event handler, user can add/remove More...
BillingRequestAPICallbackEventHandler RequestAPIEventHandler
Billing Request API Event handler, user can add/remove More...
BillingShowDeepLinkCallbackEventHandler ShowDeepLinkEventHandler
Billing Deeplink feature Event handler, user can add/remove More...

Public Functions

BillingPlugin ( )
Billing Plugin Constructor More...
string GetVersion ( )
Get Billing CS Plugin Version More...
bool ShowPurchaseHistory ( string strHistoryApp, BillingRequestPurchaseHistoryType eHistoryDetail )
Billing Client DeepLink Feature. launch billing client's purchaseHistory page. More...
bool ShowRegisterPromotionalCode ( )
Billing Client DeepLink Feature. launch billing client's Promotional Codes page. More...
bool ShowRegisterCreditCard ( )
Billing Client DeepLink Feature. launch billing client's RegisterCreditCard page. More...

Events

BillingClientClosedEventHandler BuyItemEventHandler

   Billing Transaction Event handler, user can add/remove

Privilege Level

Public

Privilege

http://developer.samsung.com/privilege/billing

Version

4.4.0

BillingRequestAPICallbackEventHandler RequestAPIEventHandler

   Billing Request API Event handler, user can add/remove

Privilege Level

Public

Privilege

http://developer.samsung.com/privilege/billing

Version

4.4.0

BillingShowDeepLinkCallbackEventHandler ShowDeepLinkEventHandler

   Billing Deeplink feature Event handler, user can add/remove

Privilege Level

Public

Privilege

http://developer.samsung.com/privilege/billing

Version

4.4.0

Public Functions

BillingPlugin()

   Billing Plugin Constructor

Privilege Level

Public

Privilege

http://developer.samsung.com/privilege/billing

Version

4.4.0

string GetVersion()

   Get Billing CS Plugin Version

Returns

Billing CS Plugin Version String value.

Privilege Level

Public

Privilege

http://developer.samsung.com/privilege/billing

Version

4.4.0

bool BuyItem(string appId, BillingRequestServerType serverType, string payDetail)

   BuyItem API launch Billing Client

Parameters

appId
   The app id
serverType
   The server type of payment.
payDetail
   The detail info of payment

Returns

boolean value. If Billing Client launched, It is return true.

Privilege Level

Public

Privilege

http://developer.samsung.com/privilege/billing

Version

4.4.0

bool IsServiceAvailable( BillingRequestServerType eServerType)

   Get Payment service availability

Parameters

eServerType
   The type of server you want to check if you are using the billing service

Returns

boolean value. If This api called successfully, It is return true.

Privilege Level

Public

Privilege

http://developer.samsung.com/privilege/billing

Version

4.4.0

bool GetPurchaseList(string strAppId, string strCustomId, string strCountryCode, int iPageNumber, string strCheckValue, BillingRequestServerType eServerType)

   'Get Purchase List' Server Open Api Interface.

Parameters

strAppId
   The app id
strCustomId
   Same as the OrderCustomID which is included the "BuyItem" API param3 (detail info of payment). It is usally user's Samsung Account UID.
strCountryCode
   the country code like "US".
iPageNumber
   number of page.
strCheckValue
   the security hash code. Please refer to api spec doc in more detail.
eServerType
   the request server type. Please refer to api spec doc in more detail.

Returns

boolean value. If This api called successfully, It is return true.

Privilege Level

Public

Privilege

http://developer.samsung.com/privilege/billing

Version

4.4.0

bool ShowPurchaseHistory(string strHistoryApp, BillingRequestPurchaseHistoryType eHistoryDetail)

   Billing Client DeepLink Feature. launch billing client's purchaseHistory page.

Parameters

strHistoryApp
   the app id that you want to see your payment history. if you want see your all payment history, please input "ALL" string.
eHistoryDetail
   Requested payment history data type. Please refer to api spec doc in more detail.

Returns

boolean value. If This api called successfully, It is return true.

Privilege Level

Public

Privilege

http://developer.samsung.com/privilege/billing

Version

4.4.0

bool ShowRegisterPromotionalCode()

   Billing Client DeepLink Feature. launch billing client's Promotional Codes page.

Returns

boolean value. If This api called successfully, It is return true.

Privilege Level

Public

Privilege

http://developer.samsung.com/privilege/billing

Version

4.4.0

bool ShowRegisterCreditCard()

   Billing Client DeepLink Feature. launch billing client's RegisterCreditCard page.

Returns

boolean value. If This api called successfully, It is return true.

Privilege Level

Public

Privilege

http://developer.samsung.com/privilege/billing

Version

4.4.0

bool CancelSubscription(string strAppId, string strCustomId, string strInvoiceId, string strCountryCode, BillingRequestServerType eServerType)

   'Cancel Subscription' Server Open Api Interface.

Parameters

strAppId
   the app id.
strCustomId
   Same as the OrderCustomID which is included the "BuyItem" API param3 (detail info of payment). It is usally user's Samsung Account UID.
strInvoiceId
   the invoice id which you want to subscription cancel.
strCountryCode
   the country code like "US".
eServerType
   the request server type. Please refer to api spec doc in more detail.

Returns

boolean value. If This api called successfully, It is return true.

Privilege Level

Public

Privilege

http://developer.samsung.com/privilege/billing

Version

4.4.0

bool ApplyInvoice(string strAppId, string strCustomId, string strInvoiceId, string strCountryCode, BillingRequestServerType eServerType)

   ApplyInvoice Server Open Api Interface.

Parameters

strAppId
   the app id.
strCustomId
   Same as the OrderCustomID which is included the "BuyItem" API param3 (detail info of payment). It is usally user's Samsung Account UID.
strInvoiceId
   the invoice id that you want to set invoice status to "apply".
strCountryCode
   the country code like "US".
eServerType
   the request server type. Please refer to api spec doc in more detail.

Returns

boolean value. If This api called successfully, It is return true.

Privilege Level

Public

Privilege

http://developer.samsung.com/privilege/billing

Version

4.4.0

bool VerifyInvoice(string strAppId, string strCustomId, string strInvoiceId, string strCountryCode, BillingRequestServerType eServerType)

   VerifyInvoice Server Open Api Interface.

Parameters

strAppId
   the app id.
strCustomId
   Same as the OrderCustomID which is included the "BuyItem" API param3 (detail info of payment). It is usally user's Samsung Account UID.
strInvoiceId
   the invoice id that you want to check invoice status.
strCountryCode
   the country code like "US".
eServerType
   the request server type. Please refer to api spec doc in more detail.

Returns

boolean value. If This api called successfully, It is return true.

Privilege Level

Public

Privilege

http://developer.samsung.com/privilege/billing

Version

4.4.0

bool GetProductsList(string strAppId, string strCountryCode, int iPageSize, int iPageNumber, string strCheckValue, BillingRequestServerType eServerType)

   'Request Product list' Server Open Api Interface.

Parameters

strAppId
   the app id
strCountryCode
   the country code like "US"
iPageSize
   number of product data in each page
iPageNumber
   number of page
strCheckValue
   the security hash code. Please refer to api spec doc in more detail
eServerType
   the request server type. Please refer to api spec doc in more detail

Returns

boolean value. If This api called successfully, It is return true.

Privilege Level

Public

Privilege

http://developer.samsung.com/privilege/billing

Version

4.4.0