Good morning
I am proceeding to payment subscriptions.
Code to obtain the payment of subscriptions product is shown below.
IabHelper.QueryInventoryFinishedListener mGotInventoryListener = new
IabHelper.QueryInventoryFinishedListener() {
public void onQueryInventoryFinished(IabResult result,
Inventory inventory) {
Purchase gasMonthly =
inventory.getPurchase(CommonData.INAPP_MONTH_AUTOPASS);
try{
Log.i("gasMonthly = " +gasMonthly);
String purcharsStr = gasMonthly.getOriginalJson();
JSONObject object = new JSONObject(purcharsStr);
boolean mAutoRenewing =
object.getBoolean(CommonData.JSON_AUTO_RENEWING);
int purchaseState = object.getInt(CommonData.JSON_PURCHASESTATE);
long purchaseTime = object.getLong(CommonData.JSON_PURCHASETIME);
if(mAutoRenewing){
Log.i("mAutoRenewing = true");
}else{
Log.i("mAutoRenewing = false");
}
if(purchaseState == 0){
Log.i("buy item");
}else if(purchaseState == 1){
Log.i("cancel item");
}else if(purchaseState == 2){
Log.i("refund");
}
Log.i("purchaseTime = " +purchaseTime);
}catch(Exception e){
Log.e(e.toString());
}
}
*Question : *
*I need to cancel your membership fee based on the settlement date.*
*The settlement date is going to be automatically renewed every month?*
*UnlessIs there any way to know the payment date of cancellation of this
product?*
please help me.
--
You received this message because you are subscribed to the Google Groups
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/android-developers.
To view this discussion on the web visit
https://groups.google.com/d/msgid/android-developers/a997a901-6436-4239-a27d-33d2925ac0e7%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.