<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.15"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>CotC C# SDK for Unity: CotcSdk.InappPurchase.IStore Interface Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
<link href="OutputCustomization.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectlogo"><img alt="Logo" src="xtralife-logo.png"/></td>
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">CotC C# SDK for Unity
   &#160;<span id="projectnumber">v1.4.0.1</span>
   </div>
   <div id="projectbrief">Making social games is easy !</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.15 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="namespace_cotc_sdk.html">CotcSdk</a></li><li class="navelem"><a class="el" href="namespace_cotc_sdk_1_1_inapp_purchase.html">InappPurchase</a></li><li class="navelem"><a class="el" href="interface_cotc_sdk_1_1_inapp_purchase_1_1_i_store.html">IStore</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="interface_cotc_sdk_1_1_inapp_purchase_1_1_i_store-members.html">List of all members</a>  </div>
  <div class="headertitle">
<div class="title">CotcSdk.InappPurchase.IStore Interface Reference</div>  </div>
</div><!--header-->
<div class="contents">
<a name="details" id="details"></a><h2 class="groupheader">Description</h2>
<div class="textblock"><p>Interface about the platform-specific store. </p>
</div><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:ae505d43249f7e489a49e9380fee8d496"><td class="memItemLeft" align="right" valign="top"><a class="el" href="class_cotc_sdk_1_1_promise.html">Promise</a>&lt; List&lt; <a class="el" href="class_cotc_sdk_1_1_inapp_purchase_1_1_product_info.html">ProductInfo</a> &gt; &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="interface_cotc_sdk_1_1_inapp_purchase_1_1_i_store.html#ae505d43249f7e489a49e9380fee8d496">GetInformationAboutProducts</a> (List&lt; <a class="el" href="class_cotc_sdk_1_1_configured_product.html">ConfiguredProduct</a> &gt; products)</td></tr>
<tr class="memdesc:ae505d43249f7e489a49e9380fee8d496"><td class="mdescLeft">&#160;</td><td class="mdescRight">Implements the actual listing of products. Note that this is not necessarily called when the customer is actually querying the list of products.  <a href="#ae505d43249f7e489a49e9380fee8d496">More...</a><br /></td></tr>
<tr class="separator:ae505d43249f7e489a49e9380fee8d496"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a78d46e1aed92d8942647645a72d1b063"><td class="memItemLeft" align="right" valign="top"><a class="el" href="class_cotc_sdk_1_1_promise.html">Promise</a>&lt; <a class="el" href="class_cotc_sdk_1_1_inapp_purchase_1_1_purchased_product.html">PurchasedProduct</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="interface_cotc_sdk_1_1_inapp_purchase_1_1_i_store.html#a78d46e1aed92d8942647645a72d1b063">LaunchPurchaseFlow</a> (<a class="el" href="class_cotc_sdk_1_1_gamer.html">Gamer</a> gamer, <a class="el" href="class_cotc_sdk_1_1_inapp_purchase_1_1_product_info.html">ProductInfo</a> product)</td></tr>
<tr class="memdesc:a78d46e1aed92d8942647645a72d1b063"><td class="mdescLeft">&#160;</td><td class="mdescRight">Implements the actual purchase flow. This does not represent the whole purchase process though, only the first part where the store front end is presented to the user and allows him to pay. The purchase process will also incur an additional step consisting in a verification of the payment before actually delivering the goods. That is why you need to call <a class="el" href="class_cotc_sdk_1_1_gamer_store.html#a307f2f31a7362420961091f8c405b5a8" title="Last step in the purchase. Validates the receipt received by a native purchase. You may have to do ad...">CotcSdk.GamerStore.ValidateReceipt</a> after your purchase has been done and forward the result.  <a href="#a78d46e1aed92d8942647645a72d1b063">More...</a><br /></td></tr>
<tr class="separator:a78d46e1aed92d8942647645a72d1b063"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1912360d736e3422e6a89db72945dce0"><td class="memItemLeft" align="right" valign="top"><a class="el" href="class_cotc_sdk_1_1_promise.html">Promise</a>&lt; <a class="el" href="class_cotc_sdk_1_1_done.html">Done</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="interface_cotc_sdk_1_1_inapp_purchase_1_1_i_store.html#a1912360d736e3422e6a89db72945dce0">TerminatePurchase</a> (<a class="el" href="class_cotc_sdk_1_1_inapp_purchase_1_1_purchased_product.html">PurchasedProduct</a> product)</td></tr>
<tr class="memdesc:a1912360d736e3422e6a89db72945dce0"><td class="mdescLeft">&#160;</td><td class="mdescRight">Completes the purchase process. This step is mandatory in order to close the purchase transaction. You can not start another purchase until you haven't validated the previous one. In order to validate it, you need to pass it to CotC servers via the <a class="el" href="class_cotc_sdk_1_1_gamer_store.html#a307f2f31a7362420961091f8c405b5a8" title="Last step in the purchase. Validates the receipt received by a native purchase. You may have to do ad...">CotcSdk.GamerStore.ValidateReceipt</a> method. In case of success, do not forget to call TerminatePurchase. This operation is local and should not fail.  <a href="#a1912360d736e3422e6a89db72945dce0">More...</a><br /></td></tr>
<tr class="separator:a1912360d736e3422e6a89db72945dce0"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae98847cc93fdaad1dd6f96853707844f"><td class="memItemLeft" align="right" valign="top"><a id="ae98847cc93fdaad1dd6f96853707844f"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>GetInformationAboutProducts_Done</b> (string message)</td></tr>
<tr class="separator:ae98847cc93fdaad1dd6f96853707844f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa4ae571d1c97eced56acddfa77de3b5a"><td class="memItemLeft" align="right" valign="top"><a id="aa4ae571d1c97eced56acddfa77de3b5a"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>LaunchPurchase_Done</b> (string message)</td></tr>
<tr class="separator:aa4ae571d1c97eced56acddfa77de3b5a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a681cd562e78b88bb2d0f2290e0230cf9"><td class="memItemLeft" align="right" valign="top"><a id="a681cd562e78b88bb2d0f2290e0230cf9"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>TerminatePurchase_Done</b> (string message)</td></tr>
<tr class="separator:a681cd562e78b88bb2d0f2290e0230cf9"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<h2 class="groupheader">Member Function Documentation</h2>
<a id="ae505d43249f7e489a49e9380fee8d496"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ae505d43249f7e489a49e9380fee8d496">&#9670;&nbsp;</a></span>GetInformationAboutProducts()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="class_cotc_sdk_1_1_promise.html">Promise</a>&lt;List&lt;<a class="el" href="class_cotc_sdk_1_1_inapp_purchase_1_1_product_info.html">ProductInfo</a>&gt; &gt; CotcSdk.InappPurchase.IStore.GetInformationAboutProducts </td>
          <td>(</td>
          <td class="paramtype">List&lt; <a class="el" href="class_cotc_sdk_1_1_configured_product.html">ConfiguredProduct</a> &gt;&#160;</td>
          <td class="paramname"><em>products</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Implements the actual listing of products. Note that this is not necessarily called when the customer is actually querying the list of products. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">products</td><td>list of products to query information for on the store. Should come from the product info as returned by Cotc.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>promise resolved when the operation has completed, with consolidated product information.</dd></dl>

</div>
</div>
<a id="a78d46e1aed92d8942647645a72d1b063"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a78d46e1aed92d8942647645a72d1b063">&#9670;&nbsp;</a></span>LaunchPurchaseFlow()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="class_cotc_sdk_1_1_promise.html">Promise</a>&lt;<a class="el" href="class_cotc_sdk_1_1_inapp_purchase_1_1_purchased_product.html">PurchasedProduct</a>&gt; CotcSdk.InappPurchase.IStore.LaunchPurchaseFlow </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="class_cotc_sdk_1_1_gamer.html">Gamer</a>&#160;</td>
          <td class="paramname"><em>gamer</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="class_cotc_sdk_1_1_inapp_purchase_1_1_product_info.html">ProductInfo</a>&#160;</td>
          <td class="paramname"><em>product</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Implements the actual purchase flow. This does not represent the whole purchase process though, only the first part where the store front end is presented to the user and allows him to pay. The purchase process will also incur an additional step consisting in a verification of the payment before actually delivering the goods. That is why you need to call <a class="el" href="class_cotc_sdk_1_1_gamer_store.html#a307f2f31a7362420961091f8c405b5a8" title="Last step in the purchase. Validates the receipt received by a native purchase. You may have to do ad...">CotcSdk.GamerStore.ValidateReceipt</a> after your purchase has been done and forward the result. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">gamer</td><td>gamer to associate with the purchase.</td></tr>
    <tr><td class="paramname">product</td><td>product to be purchased, as returned by <a class="el" href="interface_cotc_sdk_1_1_inapp_purchase_1_1_i_store.html#ae505d43249f7e489a49e9380fee8d496" title="Implements the actual listing of products. Note that this is not necessarily called when the customer...">GetInformationAboutProducts</a>.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>promise resolved when the purchase has completed successfully.</dd></dl>

</div>
</div>
<a id="a1912360d736e3422e6a89db72945dce0"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a1912360d736e3422e6a89db72945dce0">&#9670;&nbsp;</a></span>TerminatePurchase()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="class_cotc_sdk_1_1_promise.html">Promise</a>&lt;<a class="el" href="class_cotc_sdk_1_1_done.html">Done</a>&gt; CotcSdk.InappPurchase.IStore.TerminatePurchase </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="class_cotc_sdk_1_1_inapp_purchase_1_1_purchased_product.html">PurchasedProduct</a>&#160;</td>
          <td class="paramname"><em>product</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Completes the purchase process. This step is mandatory in order to close the purchase transaction. You can not start another purchase until you haven't validated the previous one. In order to validate it, you need to pass it to CotC servers via the <a class="el" href="class_cotc_sdk_1_1_gamer_store.html#a307f2f31a7362420961091f8c405b5a8" title="Last step in the purchase. Validates the receipt received by a native purchase. You may have to do ad...">CotcSdk.GamerStore.ValidateReceipt</a> method. In case of success, do not forget to call TerminatePurchase. This operation is local and should not fail. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">product</td><td>product as returned by LaunchPurchaseFlow.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>a promise that is resolved when the native operation has completed.</dd></dl>

</div>
</div>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Fri Apr 12 2019 17:41:04 for CotC C# SDK for Unity by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.15
</small></address>
</body>
</html>
