Hi,
I am trying to convert this to Java but can’t figure out how.
I tried posting it on unity answer instead but it wouldn’t let me.
Any help would be appreciated. Thank you.
Store.requestProductPurchase( "test.consumable.1", ( receipt, error ) =>
{
// we will either have a receipt or an error
if( receipt != null )
log( "purchase completed with receipt: " + receipt );
else if( error != null )
log( "error purchasing product: " + error );
});