mirror of
https://github.com/defold/extension-iap
synced 2025-09-28 17:42:18 +02:00
Compare commits
3 Commits
Author | SHA1 | Date | |
---|---|---|---|
|
5c806a990d | ||
|
ca33678486 | ||
|
faf62f2314 |
@@ -45,6 +45,7 @@ public class IapAmazon implements PurchasingListener {
|
|||||||
this.activity = activity;
|
this.activity = activity;
|
||||||
this.autoFinishTransactions = autoFinishTransactions;
|
this.autoFinishTransactions = autoFinishTransactions;
|
||||||
this.listProductsListeners = new HashMap<RequestId, IListProductsListener>();
|
this.listProductsListeners = new HashMap<RequestId, IListProductsListener>();
|
||||||
|
this.listProductsCommandPtrs = new HashMap<RequestId, Long>();
|
||||||
this.purchaseListeners = new HashMap<RequestId, IPurchaseListener>();
|
this.purchaseListeners = new HashMap<RequestId, IPurchaseListener>();
|
||||||
PurchasingService.registerListener(activity, this);
|
PurchasingService.registerListener(activity, this);
|
||||||
}
|
}
|
||||||
@@ -96,6 +97,10 @@ public class IapAmazon implements PurchasingListener {
|
|||||||
}
|
}
|
||||||
PurchasingService.notifyFulfillment(receipt, FulfillmentResult.FULFILLED);
|
PurchasingService.notifyFulfillment(receipt, FulfillmentResult.FULFILLED);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public void acknowledgeTransaction(final String purchaseToken, final IPurchaseListener purchaseListener) {
|
||||||
|
// Stub to prevent errors.
|
||||||
|
}
|
||||||
|
|
||||||
private void doGetPurchaseUpdates(final IPurchaseListener listener, final boolean reset) {
|
private void doGetPurchaseUpdates(final IPurchaseListener listener, final boolean reset) {
|
||||||
synchronized (purchaseListeners) {
|
synchronized (purchaseListeners) {
|
||||||
|
Reference in New Issue
Block a user