Skip to main content

Payments Ingest Events

Kenkai Android SDK Payment module consists of events for in-app payment activities. Payments module consists of events for rewarding platforms. You need to implement this module if your app offers users some rewards, points on completing certain actions or achieving a certain milestone by using your app.

List of Events

Event NameTypeDescription
PaymentpaymentTrack payments for all types


Payment Event

To log events for payments, when they undergo processing and processed completed or canceled.

Format

ParamUsabilityFormatEnum ValuesDescription
payment_idREQUIREDSTRING---Id the payment in question.
order_idREQUIREDSTRING---Order Id for which the payment is made.
typeREQUIREDSTRINGbank_transfer, cheque, cod, credit, pos, bank_card, otherType by which payment is being made.
actionREQUIREDSTRINGprocessed, view, add, remove, update, select, initiated, otherAction performed on the payment under question.
account_balanceREQUIREDFLOAT---Current account balance for user after payment amount is added..
payment_amountREQUIREDFLOAT---Amount for which the payment is made.
currencyREQUIREDSTRING---Currency of the payment being made (ISO 4217).
is_successfulREQUIREDBOOLEAN---Boolean to represent if the payment is successful or not.
metaOPTIONALANY---Any additional value that is sent with the log.

Usage

      val paymentObject = PaymentObject(
paymentId = "testPaymentId",
orderId = "testOrderId",
method = PaymentMethod.BankCard,
action = PaymentAction.Processed,
accountBalance = 3000.0,
paymentAmount = 2000.0,
currency = CurrencyCode.EUR,
isSuccessful = true
)

CFPaymentsEvent.logIngest(
eventType = PaymentsEventType.Payment,
logObject = paymentObject
)