Skip to content

Commit

Permalink
Fix for Loading Sub Lists
Browse files Browse the repository at this point in the history
  • Loading branch information
scottrules44 committed Sep 12, 2022
1 parent e84f294 commit ef8cfe6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Binary file modified plugins/2017.3105/android/plugin.google.iap.billing.v2.jar
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -88,13 +88,13 @@ public static String getOriginalJson(ProductDetails details) {
originalJson.put("localizedPrice", firstPricingPhase.getFormattedPrice());
originalJson.put("price_amount_micros", firstPricingPhase.getPriceAmountMicros());
originalJson.put("price_currency_code", firstPricingPhase.getPriceCurrencyCode());

if(pricingPlan.getPricingPhases().getPricingPhaseList().size() >= phaseIndex+1){
try {
ProductDetails.PricingPhase secondPricingPhase = pricingPlan.getPricingPhases().getPricingPhaseList().get(phaseIndex+1);
//Second Price
originalJson.put("original_price", secondPricingPhase.getFormattedPrice());
originalJson.put("original_price_micros", secondPricingPhase.getPriceAmountMicros());

} catch ( IndexOutOfBoundsException e ) {
//Do nothing for now
}

}else if(BillingClient.ProductType.INAPP.equals(details.getProductType())){
Expand Down

0 comments on commit ef8cfe6

Please sign in to comment.