ReportPayStep [Player Network SDK Only]
[Player Network SDK Only] Report the data of the Pay event to calculate the conversion rate for funnel analysis.
The Pay funnel contains the following steps:
0: successful login authentication > 1: pull up the list of goods > 2: successful order > 3: successful payment > 4: successful delivery
Supported Platform
- Unity
- Unreal Engine
Supports
Android, iOS, Windows
platform.Supports
Android, iOS, Windows
platform.Function Definition
- Unity
- Unreal Engine
void ReportPayStep(uint step, string stepName, bool result, int errorCode = 0, string extraJson = "{}");
static void ReportPayStep(
unsigned int step,
const std::string &step_name,
bool result,
int error_code,
const std::map<std::string, std::string> &extra_params);
Input Parameters
- Unity
- Unreal Engine
Parameter | Type | Description |
---|---|---|
step | uint | Step ID Counting from 0 |
stepName | string | Step name |
result | bool | Step result true: success false:fail |
errorCode | int | Error code result=true, errorCode=0 result=false, errorCode is custom error code |
extraJson | string | The extended field JSON string |
Parameter | Type | Description |
---|---|---|
step | int | Step ID Counting from 0 |
step_name | std::string | Step name |
result | bool | Step result true: success false:fail |
error_code | int | Error code result=true, errorCode=0 result=false, errorCode is custom error code |
extra_params | std::map<std::string, std::string> | The extended field JSON string |
Code Sample
- Unity
- Unreal Engine
UnionAdapterAPI.GetReportService().ReportPayStep(0, "stepName", true);
GUA_NAMESPACE::GUAReportService::ReportPayStep(0, "stepName", true);