Log Merchant Event


(name:
Description: Log an event into the PhonePe ecosystem.

Request Parameters

Parameter Name

Type

Description

name

string

Name of the event

metadata

[string: string]

A loose key-value pair map to add extra information to the system.

Returns:
Promise
Resolves if the event was successfully logged.
Rejects if there is an error.

Usage:

sdk.logMerchantEvent('EventName', 'GroupingKey_123', {'k1': 'v1', 'k2': 'v2'}).then((data) => {
  console.log('logMerchant event successful')
}).catch((err) => {
  console.log('logMerchant Error = ' + err)
})