@capgo/native-purchases 0.0.17 → 0.0.19
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md
CHANGED
|
@@ -212,6 +212,12 @@ public class NativePurchasesPlugin extends Plugin {
|
|
|
212
212
|
BillingResult billingResult,
|
|
213
213
|
List<ProductDetails> productDetailsList
|
|
214
214
|
) {
|
|
215
|
+
if(productDetailsList.size() == 0) {
|
|
216
|
+
billingClient.endConnection();
|
|
217
|
+
billingClient = null;
|
|
218
|
+
call.reject("Product not found");
|
|
219
|
+
return;
|
|
220
|
+
}
|
|
215
221
|
// Process the result
|
|
216
222
|
List<BillingFlowParams.ProductDetailsParams> productDetailsParamsList = new ArrayList<>();
|
|
217
223
|
for (ProductDetails productDetailsItem : productDetailsList) {
|
|
@@ -293,6 +299,12 @@ public class NativePurchasesPlugin extends Plugin {
|
|
|
293
299
|
BillingResult billingResult,
|
|
294
300
|
List<ProductDetails> productDetailsList
|
|
295
301
|
) {
|
|
302
|
+
if(productDetailsList.size() == 0) {
|
|
303
|
+
billingClient.endConnection();
|
|
304
|
+
billingClient = null;
|
|
305
|
+
call.reject("Product not found");
|
|
306
|
+
return;
|
|
307
|
+
}
|
|
296
308
|
Log.i(
|
|
297
309
|
"NativePurchases",
|
|
298
310
|
"onProductDetailsResponse" + billingResult + productDetailsList
|