I need the purchaseToken for our server. This field exsits in the Android API,
/**
* Token that uniquely identifies a purchase.
*/
val purchaseToken: String,
And it is received upon purchase. But iOS API of the purchase function below doesn't send it back
func purchase(package: Package) async throws -> PurchaseResultData
When I debug, I see a similar data inside this:
purchaseResultData.customerInfo.allPurchases.first?.value["id"]
But allPurchases
is private so I can't get it this way.
Any ideas?