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
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
551 Understanding How to Configure Google API Key
545 GDB gets version error when attempting to debug with the Presense SDK (IDE)
546 Uncaught (inpromise) Error on Electron: An object could not be cloned
758 When building Fast API+Uvicorn environment with PyInstaller, console=False results in an error
© 2024 OneMinuteCode. All rights reserved.