Difference between revisions of "Event.REQUEST PURCHASE COMPLETE"

From GiderosMobile
 
(6 intermediate revisions by the same user not shown)
Line 1: Line 1:
 
__NOTOC__
 
__NOTOC__
'''Available since:''' Gideros 2012.09<br/>
+
<languages />
'''Value:''' requestPurchaseComplete<br/>
+
'''<translate>Available since</translate>:''' Gideros 2012.09<br/>
=== Description ===
+
'''<translate>Value</translate>:''' requestPurchaseComplete<br/>
Dispatched when `GoogleBilling:requestPurchase` function completes with these response codes:
+
'''<translate>Defined by</translate>:''' [[Special:MyLanguage/GoogleBilling|GoogleBilling]]<br/>
`GoogleBilling.USER_CANCELED` indicates that the user pressed the back button on the checkout page instead of buying the item.
+
=== <translate>Descriptio</translate>n ===
`GoogleBilling.SERVICE_UNAVAILABLE` indicates that the network connection is down.
+
<translate>Dispatched when [[Special:MyLanguage/GoogleBilling:requestPurchase|GoogleBilling:requestPurchase]] function completes with these response codes:
`GoogleBilling.BILLING_UNAVAILABLE` indicates that in-app billing is not available because the API version that you specified is not recognized by the Google Play application or the user is ineligible for in-app billing (for example, the user resides in a country that prohibits in-app purchases).
+
[[Special:MyLanguage/GoogleBilling.USER_CANCELED|GoogleBilling.USER_CANCELED]] indicates that the user pressed the back button on the checkout page instead of buying the item.
`GoogleBilling.ITEM_UNAVAILABLE` indicates that Google Play cannot find the requested item in the application's product list.
+
[[Special:MyLanguage/GoogleBilling.SERVICE_UNAVAILABLE|GoogleBilling.SERVICE_UNAVAILABLE]] indicates that the network connection is down.
`GoogleBilling.DEVELOPER_ERROR` Indicates that an application is trying to make an in-app billing request but the application has not declared the com.android.vending.BILLING permission in its manifest. Can also indicate that an application is not properly signed, or that you sent a malformed request, such as a request with missing Bundle keys or a request that uses an unrecognized request type.
+
[[Special:MyLanguage/GoogleBilling.BILLING_UNAVAILABLE|GoogleBilling.BILLING_UNAVAILABLE]] indicates that in-app billing is not available because the API version that you specified is not recognized by the Google Play application or the user is ineligible for in-app billing (for example, the user resides in a country that prohibits in-app purchases).
`GoogleBilling.ERROR` indicates an unexpected server error. For example, this error is triggered if you try to purchase an item from yourself, which is not allowed by Google Wallet.
+
[[Special:MyLanguage/GoogleBilling.ITEM_UNAVAILABLE|GoogleBilling.ITEM_UNAVAILABLE]] indicates that Google Play cannot find the requested item in the application's product list.
=== Parameters ===
+
[[Special:MyLanguage/GoogleBilling.DEVELOPER_ERROR|GoogleBilling.DEVELOPER_ERROR]] Indicates that an application is trying to make an in-app billing request but the application has not declared the com.android.vending.BILLING permission in its manifest. Can also indicate that an application is not properly signed, or that you sent a malformed request, such as a request with missing Bundle keys or a request that uses an unrecognized request type.
'''productId''': (string) your given id of the product purchased<br/>
+
[[Special:MyLanguage/GoogleBilling.ERROR|GoogleBilling.ERROR]] indicates an unexpected server error. For example, this error is triggered if you try to purchase an item from yourself, which is not allowed by Google Wallet.</translate>
'''responseCode''': (string) response code.<br/>
+
=== <translate>Parameters</translate> ===
'''productType''': (string) type of the product purchased<br/>
+
'''productId''': (string) <translate>your given id of the product purchased</translate><br/>
'''developerPayload''': (string) A developer-specified string that can be specified when you make a purchase request.<br/>
+
'''responseCode''': (string) <translate>response code.</translate><br/>
 +
'''productType''': (string) <translate>type of the product purchased</translate><br/>
 +
'''developerPayload''': (string) <translate>A developer-specified string that can be specified when you make a purchase request.</translate><br/>

Latest revision as of 10:58, 3 September 2018


Available since: Gideros 2012.09
Value: requestPurchaseComplete
Defined by: GoogleBilling

Description

Dispatched when GoogleBilling:requestPurchase function completes with these response codes: GoogleBilling.USER_CANCELED indicates that the user pressed the back button on the checkout page instead of buying the item. GoogleBilling.SERVICE_UNAVAILABLE indicates that the network connection is down. GoogleBilling.BILLING_UNAVAILABLE indicates that in-app billing is not available because the API version that you specified is not recognized by the Google Play application or the user is ineligible for in-app billing (for example, the user resides in a country that prohibits in-app purchases). GoogleBilling.ITEM_UNAVAILABLE indicates that Google Play cannot find the requested item in the application's product list. GoogleBilling.DEVELOPER_ERROR Indicates that an application is trying to make an in-app billing request but the application has not declared the com.android.vending.BILLING permission in its manifest. Can also indicate that an application is not properly signed, or that you sent a malformed request, such as a request with missing Bundle keys or a request that uses an unrecognized request type. GoogleBilling.ERROR indicates an unexpected server error. For example, this error is triggered if you try to purchase an item from yourself, which is not allowed by Google Wallet.

Parameters

productId: (string) your given id of the product purchased
responseCode: (string) response code.
productType: (string) type of the product purchased
developerPayload: (string) A developer-specified string that can be specified when you make a purchase request.