MCPcopy Create free account
hub / github.com/Acode-Foundation/Acode / onConsumeResponse

Method onConsumeResponse

src/plugins/iap/src/com/foxdebug/iap/Iap.java:154–164  ·  view source on GitHub ↗
(
          BillingResult billingResult,
          String purchaseToken
        )

Source from the content-addressed store, hash-verified

152 consumeParams,
153 new ConsumeResponseListener() {
154 public void onConsumeResponse(
155 BillingResult billingResult,
156 String purchaseToken
157 ) {
158 int responseCode = billingResult.getResponseCode();
159 if (responseCode == BillingResponseCode.OK) {
160 callbackContext.success(responseCode);
161 } else {
162 callbackContext.error(responseCode);
163 }
164 }
165 }
166 );
167 }

Callers

nothing calls this directly

Calls 2

successMethod · 0.80
errorMethod · 0.45

Tested by

no test coverage detected