Report Payment Event Steps (ReportPayStep) [Player Network SDK only]
[Player Network SDK only] Reports Pay event data to calculate funnel analysis conversion rates.
The Pay funnel model includes steps:
0: Login verification successful > 1: Fetch goods list > 2: Order successful > 3: Payment successful > 4: Delivery successful

Supported Platforms
- 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
| Parameters | Type | Description |
|---|---|---|
| step | uint | Step ID Counting starts from 0 |
| stepName | string | Step Name |
| result | bool | Step Result true: success false: failure |
| errorCode | int | Error Code When result=true, errorCode=0 When result=false, errorCode is a custom error code |
| extraJson | string | Additional Parameters JSON format |
| Parameters | Type | Description |
|---|---|---|
| step | int | Step ID Counting starts from 0 |
| step_name | std::string | Step Name |
| result | bool | Step Result true: success false: failure |
| error_code | int | Error Code When result=true, errorCode=0 When result=false, errorCode is a custom error code |
| extra_params | std::map<std::string, std::string> | Additional Parameters JSON format |
Code Example
- Unity
- Unreal Engine
UnionAdapterAPI.GetReportService().ReportPayStep(0, "stepName", true);
GUA_NAMESPACE::GUAReportService::ReportPayStep(0, "stepName", true);