I'd like to ask you a question about payment for Android in-app.

Asked 2 years ago, Updated 2 years ago, 31 views

        Intent in = new Intent();
        in.putExtra(PAC_INDEX,pIndex);

        Bundle buyIntentBundle = mService.getBuyIntent(3, context.getPackageName(),
                id, "inapp", publicKey);
        PendingIntent pendingIntent = buyIntentBundle.getParcelable("BUY_INTENT");
        ((Activity)context).startIntentSenderForResult(pendingIntent.getIntentSender(),
                BUY_ITEM, in,Integer.valueOf(0), Integer.valueOf(0),
                Integer.valueOf(0));

I wanted to send you the values in the new Int() part when I asked for a purchase like this, so I made an Intent and inserted the value and received it using data.getIntExtra in the onActivityResult, but it was not included.

What should I do?ㅜㅜㅜ

android payment

2022-09-22 13:39

1 Answers

According to the Android document, the third parameter of the startIntentSenderForResult() function is fillIntent. I think internally, we will use the same policy as Intent's fillIn() function. I don't think we can receive the value because there is no extras data in the allowable range of the content information that this function can modify.

Reference


2022-09-22 13:39

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.