Re: Consumable In App Purchases on Android

2023-08-09 Thread Dan Friedman via use-livecode
: Consumable In App Purchases on Android Hello Dan, Thanks for the update. RE 1, I *think* yes, but I would suggest you double check this anyway. RE 2, I would suggest not using mobilePurchaseGet(). This function is from the older API for in-app purchases, and we have kept it for backwards

Re: Consumable In App Purchases on Android

2023-08-09 Thread panagiotis m via use-livecode
f the lesson on the LC website was updated > to these options/methods. It might save the next guy some grief. > > -Dan > > > From: use-livecode on behalf of > panagiotis m via use-livecode > Date: Wednesday, August 9, 2023 at 7:51 AM > To: How to use LiveCode > Cc:

Re: Consumable In App Purchases on Android

2023-08-09 Thread Dan Friedman via use-livecode
m via use-livecode Date: Wednesday, August 9, 2023 at 7:51 AM To: How to use LiveCode Cc: panagiotis m Subject: Re: Consumable In App Purchases on Android Hello all, Also, it might be worth trying this as well - add a new button with this code: on mouseUp mobileStoreEnablePurchaseUpdates

Re: Consumable In App Purchases on Android

2023-08-09 Thread panagiotis m via use-livecode
h our display >> break >> case "error" >> answer "Error occured during purchase handling:" & return & return >> & mobileStorePurchaseError(pPurchaseID) >> mobileStoreDisablePurchaseUpdates >> break >>

Re: Consumable In App Purchases on Android

2023-08-09 Thread panagiotis m via use-livecode
ak > case "alreadyEntitled" > answer "Already Owned." > mobileStoreDisablePurchaseUpdates > break > case "restored" > answer "restored" > offerPurchasedProduct pProductID > mobileStoreConfirmPu

Re: Consumable In App Purchases on Android

2023-08-08 Thread Dan Friedman via use-livecode
//refresh our display break case "canceled" case "cancelled" answer "Purchase Cancelled:" && pProductID mobileStoreDisablePurchaseUpdates break end switch end purchaseStateUpdate Do you see anything wonky in my code? --D

Re: Consumable In App Purchases on Android

2023-08-08 Thread Andrew at MidWest Coast Media via use-livecode
urchases-in-livecode-google-play-store> has a good example of this. —Andrew Bell > To: How to use LiveCode > Subject: Re: Consumable In App Purchases on Android > Message-ID: > > > > Content-Type: text/plain; charset="Windows-1252" > &g

Re: Consumable In App Purchases on Android

2023-08-08 Thread Dan Friedman via use-livecode
otis m via use-livecode Date: Tuesday, August 8, 2023 at 9:21 AM To: How to use LiveCode Cc: panagiotis m Subject: Re: Consumable In App Purchases on Android Hello Dan, I think Google no longer differentiates between consumables and non-consumables when setting up the in-app product - they are b

Re: Consumable In App Purchases on Android

2023-08-08 Thread panagiotis m via use-livecode
Hello Dan, I think Google no longer differentiates between consumables and non-consumables when setting up the in-app product - they are both marked as "In-App Products”. However, in LiveCode, you have to call mobileStoreConsumePurchase pProductID to be able to buy the product again - otherwise yo