Hi,


 I want to implement an In app Purchase (*Subscription *based)in my app so 
i integrated version 2.0 in App API.  I implemented the  Coding part and 
its working fine.

I have a doubt that where will we get the  call back in the second time 
automatic recurring payment , means in the first time  after my successful 
payment transaction i got the   the call back in the *onReceive() *method 
of  BillingReceiver. Do we get the  call back again in the *onReceive()*method 
in all successful  Auto recurring   payment transaction.

I want to send some information to Client's server after each successful 
Auto recurring  payment, so could any one tell me which  event will get the 
call back in each successful transaction


Please see the below code

public void onReceive(Context context, Intent intent) {
        String action = intent.getAction();
        if (Consts.ACTION_PURCHASE_STATE_CHANGED.equals(action)) {
            String signedData = 
intent.getStringExtra(Consts.INAPP_SIGNED_DATA);
            String signature = 
intent.getStringExtra(Consts.INAPP_SIGNATURE);
            purchaseStateChanged(context, signedData, signature);
        } else if (Consts.ACTION_NOTIFY.equals(action)) {
            String notifyId = intent.getStringExtra(Consts.NOTIFICATION_ID);
            if (Consts.DEBUG) {
                Log.i(TAG, "notifyId: " + notifyId);
            }
            notify(context, notifyId);
        } else if (Consts.ACTION_RESPONSE_CODE.equals(action)) {
            long requestId = intent.getLongExtra(Consts.INAPP_REQUEST_ID, 
-1);
            int responseCodeIndex = 
intent.getIntExtra(Consts.INAPP_RESPONSE_CODE,
                    ResponseCode.RESULT_ERROR.ordinal());
            checkResponseCode(context, requestId, responseCodeIndex);
        } else {
            Log.w(TAG, "unexpected action: " + action);
        }
    }
 

Thanks,
 JOBZ


-- 
-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
--- 
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].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to