Added title and description

This commit is contained in:
Björn Ritzl 2022-09-08 09:51:39 +02:00
parent d0ca1e05fd
commit c09aa64ab5

View File

@ -142,6 +142,8 @@ public class IapGooglePlay implements PurchasesUpdatedListener {
JSONObject p = new JSONObject(); JSONObject p = new JSONObject();
try { try {
p.put("ident", productDetails.getProductId()); p.put("ident", productDetails.getProductId());
p.put("title", productDetails.getTitle());
p.put("description", productDetails.getDescription());
if (productDetails.getProductType().equals(ProductType.INAPP)) { if (productDetails.getProductType().equals(ProductType.INAPP)) {
OneTimePurchaseOfferDetails offerDetails = productDetails.getOneTimePurchaseOfferDetails(); OneTimePurchaseOfferDetails offerDetails = productDetails.getOneTimePurchaseOfferDetails();
p.put("price_string", offerDetails.getFormattedPrice()); p.put("price_string", offerDetails.getFormattedPrice());