Поскольку setOldSku (String oldSku) устарело, как получить токен покупки и передать его в новом методе setOldSk?
public void initiatePurchaseFlow(final SkuDetails skuDetails, final String oldSkuId) {
Runnable purchaseFlowRequest = new Runnable() {
@Override
public void run() {
Log.d(TAG, " SKU Details: " + skuDetails.getTitle());
BillingFlowParams purchaseParams = BillingFlowParams.newBuilder()
.setSkuDetails(skuDetails).setOldSku(oldSkuId, myPurchaseToken).build();
mBillingClient.launchBillingFlow(mActivity);
}
};
executeServiceRequest(purchaseFlowRequest);
}