dusanmiha

Facebook App - Ecommerce - Android - Java - AddedPaymentInfo Event

Oct 14th, 2021
619
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. /**
  2.  * This function assumes logger is an instance of AppEventsLogger and has been
  3.  * created using AppEventsLogger.newLogger() call.
  4.  */
  5. public void logAddedPaymentInfoEvent (boolean success) {
  6.     Bundle params = new Bundle();
  7.     params.putInt(AppEventsConstants.EVENT_PARAM_SUCCESS, success ? 1 : 0);             //1 for yes, 0 for no
  8.     logger.logEvent(AppEventsConstants.EVENT_NAME_ADDED_PAYMENT_INFO, params);
  9. }
RAW Paste Data