Fintech : 금융
금융 앱에서 측정을 권장하는 인앱 이벤트 API와 적용 예시를 안내합니다.
☑️속성 중 Key 이름은 가이드에 나와있는 Key 이름을 그대로 사용 해 주세요. (임의로 변경시 대시보드에서 데이터 확인이 어렵습니다. > account_type, company_a 등)
본인인증
본인인증이 완료되는 시점에 아래 코드를 추가합니다.
Map<String, Object> eventMap = new HashMap<>();
eventMap.put("event", "w_authenticate");
DOT.logEvent(eventMap);
val eventMap = mutableMapOf<String,Any>()
eventMap["event"] = "w_authenticate"
DOT.logEvent(eventMap)
let event = NSMutableDictionary()
event["event"] = "w_authenticate"
DOT.logEvent(event)
NSMutableDictionary *event = [[NSMutableDictionary alloc] init];
[event setValue:@"w_authenticate" forKey:@"event"];
[DOT logEvent:event];
var event = new Object();
event["event"] = "w_authenticate";
DOT.logEvent(event);
var event = new Object();
event["event"] = "w_authenticate";
WDOT.logEvent(event);
// .dart 에서 호출 할 때
Map event = {};
event["event"] = "w_authenticate";
DOT.logEvent(event);
// webview 에서 호출 할 때
DotFlutterDataBridge.postMessage(JSON.stringify({
method : "logEvent",
data: {
event : "w_authenticate"
}
}));
// .js 에서 호출 할 때
NativeModules.DotReactBridge.logEvent(JSON.stringify({
event : "w_authenticate"
}));
// webview 에서 호출 할 때
window.ReactNativeWebView.postMessage(JSON.stringify({
method:"logEvent",
data : {
event : "w_authenticate"
}
}));
Dictionary<string, object> eventDic = new Dictionary<string, object>();
eventDic.Add("event", "w_authenticate");
DOT.logEvent(eventDic);
신용정보 조회
유저가 조회한 신용정보가 출력된 시점에 아래 코드를 추가합니다.
Map<String, Object> eventMap = new HashMap<>();
eventMap.put("event", "w_check_credit_info");
DOT.logEvent(eventMap);
val eventMap = mutableMapOf<String,Any>()
eventMap["event"] = "w_check_credit_info"
DOT.logEvent(eventMap)
let event = NSMutableDictionary()
event["event"] = "w_check_credit_info"
DOT.logEvent(event)
NSMutableDictionary *event = [[NSMutableDictionary alloc] init];
[event setValue:@"w_check_credit_info" forKey:@"event"];
[DOT logEvent:event];
var event = new Object();
event["event"] = "w_check_credit_info";
DOT.logEvent(event);
var event = new Object();
event["event"] = "w_check_credit_info";
WDOT.logEvent(event);
// .dart 에서 호출 할 때
Map event = {};
event["event"] = "w_check_credit_info";
DOT.logEvent(event);
// webview 에서 호출 할 때
DotFlutterDataBridge.postMessage(JSON.stringify({
method : "logEvent",
data: {
event : "w_check_credit_info"
}
}));
// .js 에서 호출 할 때
NativeModules.DotReactBridge.logEvent(JSON.stringify({
event : "w_check_credit_info"
}));
// webview 에서 호출 할 때
window.ReactNativeWebView.postMessage(JSON.stringify({
method:"logEvent",
data : {
event : "w_check_credit_info"
}
}));
Dictionary<string, object> eventDic = new Dictionary<string, object>();
eventDic.Add("event", "w_check_credit_info");
DOT.logEvent(eventDic);
신청 접수
신청 접수가 완료된 시점에 아래 코드를 추가합니다.
Map<String, Object> eventMap = new HashMap<>();
eventMap.put("event", "w_submit_registration");
DOT.logEvent(eventMap);
val eventMap = mutableMapOf<String,Any>()
eventMap["event"] = "w_submit_registration"
DOT.logEvent(eventMap)
let event = NSMutableDictionary()
event["event"] = "w_submit_registration"
DOT.logEvent(event)
NSMutableDictionary *event = [[NSMutableDictionary alloc] init];
[event setValue:@"w_submit_registration" forKey:@"event"];
[DOT logEvent:event];
var event = new Object();
event["event"] = "w_submit_registration";
DOT.logEvent(event);
var event = new Object();
event["event"] = "w_submit_registration";
WDOT.logEvent(event);
// .dart 에서 호출 할 때
Map event = {};
event["event"] = "w_submit_registration";
DOT.logEvent(event);
// webview 에서 호출 할 때
DotFlutterDataBridge.postMessage(JSON.stringify({
method : "logEvent",
data: {
event : "w_submit_registration"
}
}));
// .js 에서 호출 할 때
NativeModules.DotReactBridge.logEvent(JSON.stringify({
event : "w_submit_registration"
}));
// webview 에서 호출 할 때
window.ReactNativeWebView.postMessage(JSON.stringify({
method:"logEvent",
data : {
event : "w_submit_registration"
}
}));
Dictionary<string, object> eventDic = new Dictionary<string, object>();
eventDic.Add("event", "w_submit_registration");
DOT.logEvent(eventDic);
신청 승인
신청한 접수가 승인 완료된 시점에 아래 코드를 추가합니다.
Map<String, Object> eventMap = new HashMap<>();
eventMap.put("event", "w_registration_approved");
DOT.logEvent(eventMap);
val eventMap = mutableMapOf<String,Any>()
eventMap["event"] = "w_registration_approved"
DOT.logEvent(eventMap)
let event = NSMutableDictionary()
event["event"] = "w_registration_approved"
DOT.logEvent(event)
NSMutableDictionary *event = [[NSMutableDictionary alloc] init];
[event setValue:@"w_registration_approved" forKey:@"event"];
[DOT logEvent:event];
var event = new Object();
event["event"] = "w_registration_approved";
DOT.logEvent(event);
var event = new Object();
event["event"] = "w_registration_approved";
WDOT.logEvent(event);
// .dart 에서 호출 할 때
Map event = {};
event["event"] = "w_registration_approved";
DOT.logEvent(event);
// webview 에서 호출 할 때
DotFlutterDataBridge.postMessage(JSON.stringify({
method : "logEvent",
data: {
event : "w_registration_approved"
}
}));
// .js 에서 호출 할 때
NativeModules.DotReactBridge.logEvent(JSON.stringify({
event : "w_registration_approved"
}));
// webview 에서 호출 할 때
window.ReactNativeWebView.postMessage(JSON.stringify({
method:"logEvent",
data : {
event : "w_registration_approved"
}
}));
Dictionary<string, object> eventDic = new Dictionary<string, object>();
eventDic.Add("event", "w_registration_approved");
DOT.logEvent(eventDic);
계좌 연동
계좌가 연동 완료된 시점에 아래 코드를 추가합니다.
선택 속성
Key | Value 예시 | Type | 설명 |
account_type | 예금 | string | 연동된 계좌 유형 |
company_a | KB국민은행 | string | 연동된 금융사 |
Map<String, Object> eventMap = new HashMap<>();
eventMap.put("event", "w_link_account");
eventMap.put("account_type", "예금");
eventMap.put("company_a", "KB국민은행");
DOT.logEvent(eventMap);
val eventMap = mutableMapOf<String,Any>()
eventMap["event"] = "w_link_account"
eventMap["account_type"] = "예금"
eventMap["company_a"] = "KB국민은행"
DOT.logEvent(eventMap)
let event = NSMutableDictionary()
event["event"] = "w_link_account"
event["account_type"] = "예금"
event["company_a"] = "KB국민은행"
DOT.logEvent(event)
NSMutableDictionary *event = [[NSMutableDictionary alloc] init];
[event setValue:@"w_link_account" forKey:@"event"];
[event setValue:@"예금" forKey:@"account_type"];
[event setValue:@"KB국민은행" forKey:@"company_a"];
[DOT logEvent:event];
var event = new Object();
event["event"] = "w_link_account";
event["account_type"] = "예금";
event["company_a"] = "KB국민은행";
DOT.logEvent(event);
var event = new Object();
event["event"] = "w_link_account";
event["account_type"] = "예금";
event["company_a"] = "KB국민은행";
WDOT.logEvent(event);
// .dart 에서 호출 할 때
Map event = {};
event["event"] = "w_link_account";
event["account_type"] = "예금";
event["company_a"] = "KB국민은행";
DOT.logEvent(event);
// webview 에서 호출 할 때
DotFlutterDataBridge.postMessage(JSON.stringify({
method : "logEvent",
data: {
event : "w_link_account",
account_type : "예금",
company_a : "KB국민은행"
}
}));
// .js 에서 호출 할 때
NativeModules.DotReactBridge.logEvent(JSON.stringify({
event : "w_link_account",
account_type : "예금",
company_a : "국민은행"
}));
// webview 에서 호출 할 때
window.ReactNativeWebView.postMessage(JSON.stringify({
method:"logEvent",
data : {
event : "w_link_account",
account_type : "예금",
company_a : "국민은행"
}
}));
Dictionary<string, object> eventDic = new Dictionary<string, object>();
eventDic.Add("event", "w_link_account");
eventDic.Add("account_type", "예금");
eventDic.Add("company_a", "KB국민은행");
DOT.logEvent(eventDic);
신규회원 계좌 개설
신규회원이 계좌를 개설한 시점에 아래 코드를 추가합니다.
Map<String, Object> eventMap = new HashMap<>();
eventMap.put("event", "w_open_account_complete_new");
DOT.logEvent(eventMap);
val eventMap = mutableMapOf<String,Any>()
eventMap["event"] = "w_open_account_complete_new"
DOT.logEvent(eventMap)
let event = NSMutableDictionary()
event["event"] = "w_open_account_complete_new"
DOT.logEvent(event)
NSMutableDictionary *screen = [[NSMutableDictionary alloc] init];
[screen setValue:@"w_open_account_complete_new" forKey:@"event"];
[DOT logScreen:screen];
var event = new Object();
event["event"] = "w_open_account_complete_new";
DOT.logEvent(event);
var event = new Object();
event["event"] = "w_open_account_complete_new";
WDOT.logEvent(event);
// .dart 에서 호출 할 때
Map event = {};
event["event"] = "w_open_account_complete_new";
DOT.logEvent(event);
// webview 에서 호출 할 때
DotFlutterDataBridge.postMessage(JSON.stringify({
method : "logEvent",
data: {
event : "w_open_account_complete_new"
}
}));
// .js 에서 호출 할 때
NativeModules.DotReactBridge.logEvent(JSON.stringify({
event : "w_open_account_complete_new"
}));
// webview 에서 호출 할 때
window.ReactNativeWebView.postMessage(JSON.stringify({
method:"logEvent",
data : {
event : "w_open_account_complete_new"
}
}));
Dictionary<string, object> eventDic = new Dictionary<string, object>();
eventDic.Add("event", "w_open_account_complete_new");
DOT.logEvent(eventDic);
기존회원 계좌 개설
기존회원이 계좌를 개설한 시점에 아래 코드를 추가합니다.
Map<String, Object> eventMap = new HashMap<>();
eventMap.put("event", "w_open_account_complete");
DOT.logEvent(eventMap);
val eventMap = mutableMapOf<String,Any>()
eventMap["event"] = "w_open_account_complete"
DOT.logEvent(eventMap)
let event = NSMutableDictionary()
event["event"] = "w_open_account_complete"
DOT.logEvent(event)
NSMutableDictionary *screen = [[NSMutableDictionary alloc] init];
[screen setValue:@"w_open_account_complete" forKey:@"event"];
[DOT logScreen:screen];
var event = new Object();
event["event"] = "w_open_account_complete";
DOT.logEvent(event);
var event = new Object();
event["event"] = "w_open_account_complete";
WDOT.logEvent(event);
// .dart 에서 호출 할 때
Map event = {};
event["event"] = "w_open_account_complete";
DOT.logEvent(event);
// webview 에서 호출 할 때
DotFlutterDataBridge.postMessage(JSON.stringify({
method : "logEvent",
data: {
event : "w_open_account_complete"
}
}));
// .js 에서 호출 할 때
NativeModules.DotReactBridge.logEvent(JSON.stringify({
event : "w_open_account_complete"
}));
// webview 에서 호출 할 때
window.ReactNativeWebView.postMessage(JSON.stringify({
method:"logEvent",
data : {
event : "w_open_account_complete"
}
}));
Dictionary<string, object> eventDic = new Dictionary<string, object>();
eventDic.Add("event", "w_open_account_complete");
DOT.logEvent(eventDic);
송금
송금이 완료된 시점에 아래 코드를 추가합니다.
선택 속성
Key | Value 예시 | Type | 설명 |
transaction_id | WR9492003 | string | 송금번호 |
currency | KRW | string | 통화코드 |
company_a | ID04002 | string | 입금받는 금융사 명칭 또는 고유번호 |
quantity | 1 | integer | 송금 횟수 |
revenue | 215000 | double | 송금액 |
Map<String, Object> purchaseMap = new HashMap<>();
purchaseMap.put("transaction_id", "WR9492003");
purchaseMap.put("currency", "KRW");
Map<String, Object> productMap = new HashMap<>();
productMap.put("company_a", "ID04002");
productMap.put("quantity", 1);
productMap.put("revenue", 215000);
purchaseMap.put("product", productMap);
DOT.logPurchase(purchaseMap);
val purchaseMap = mutableMapOf<String,Any>()
purchaseMap["transaction_id"] = "WR9492003"
purchaseMap["currency"] = "KRW"
val productMap = mutableMapOf<String,Any>()
productMap["company_a"] = "ID04002"
productMap["evquantityent"] = 1
productMap["revenue"] = 215000
purchaseMap["product"] = productMap
DOT.logPurchase(purchaseMap)
let purchase = NSMutableDictionary()
purchase["transaction_id"] = "WR9492003"
purchase["currency"] = "KRW"
var product : [String: Any] = [:]
product["company_a"] = "ID04002"
product["quantity"] = 1
product["revenue"] = 215000
purchase["product"] = product
DOT.logPurchase(purchase)
NSMutableDictionary *purchase = [[NSMutableDictionary alloc] init];
[purchase setValue:@"WR9492003" forKey:@"transaction_id"];
[purchase setValue:@"KRW" forKey:@"currency"];
NSMutableDictionary *product = [[NSMutableDictionary alloc] init];
[product setValue:@"ID04002" forKey:@"company_a"];
[product setValue:[NSNumber numberWithInt:1] forKey:@"quantity"];
[product setValue:[NSNumber numberWithInt:215000] forKey:@"revenue"];
[purchase setValue:product forKey:@"product"];
[DOT logPurchase:purchase];
var purchase = new Object();
purchase["transaction_id"] = "WR9492003";
purchase["currency"] = "KRW";
var product = new Object();
product["company_a"] = "ID04002";
product["quantity"] = 1;
product["revenue"] = 215000;
purchase["product"] = product;
DOT.logPurchase(purchase);
var purchase = new Object();
purchase["transaction_id"] = "WR9492003";
purchase["currency"] = "KRW";
var product = new Object();
product["company_a"] = "ID04002";
product["quantity"] = 1;
product["revenue"] = 215000;
purchase["product"] = product;
WDOT.logPurchase(purchase);
// .dart 에서 호출 할 때
Map purchase = {};
purchase["transaction_id"] = "WR9492003";
purchase["currency"] = "KRW";
Map product = {};
product["company_a"] = "ID04002";
product["quantity"] = 1;
product["revenue"] = 215000;
purchase["product"] = product;
DOT.logPurchase(purchase);
// webview 에서 호출 할 때
var purchase = new Object();
purchase["transaction_id"] = "WR9492003";
purchase["currency"] = "KRW";
var productArray = new Array();
for( var inx = 0; inx < purchaselist[송금목록].length; inx++){
var purchaseProduct = purchaselist[inx];
var product = new Object();
product["company_a"] = "ID04002";
product["quantity"] = 1;
product["revenue"] = 215000;
productArray.push(product);
purchase["product"] = productArray;
DotFlutterDataBridge.postMessage(JSON.stringify({
method : "logPurchase",
data: purchase
}));
// .js 에서 호출 할 때
NativeModules.DotReactBridge.logPurchase(JSON.stringify({
transaction_id : "WR9492003",
currency : "KRW",
product : {
company_a : "ID04002",
currency_value_a : 300000,
quantity : 1,
revenue : 215000
}
}));
// webview 에서 호출 할 때
window.ReactNativeWebView.postMessage(JSON.stringify({
method:"logPurchase",
data : {
transaction_id : "WR9492003",
currency : "KRW",
product : {
company_a : "ID04002",
currency_value_a : 300000,
quantity : 1,
revenue : 215000
}
}
}));
Dictionary<string, object> purchase = new Dictionary<string, object>();
purchase.Add("transaction_id", "WR9492003");
purchase.Add("currency", "KRW");
Dictionary<string, object> product = new Dictionary<string, object>();
product.Add("company_a", "ID04002");
product.Add("quantity", 1);
product.Add("revenue", 215000);
List<Dictionary<string, object>> productList = new List<Dictionary<string, object>>();
productList.Add(product);
purchase.Add("product", productList);
DOT.logPurchase(purchase);
환전
환전이 완료된 시점에 아래 코드를 추가합니다.
선택 속성
Key | Value 예시 | Type | 설명 |
transaction_id | EX47949398 | string | 송금번호 |
currency_a | KRW | string | 기준통화코드 |
currency_value_a | 300000 | float | 환전 대상 금액 |
currency_b | HKD | string | 환전 받은 통화코드 |
currency_value_b | 2106.54 | float | 환전 받은 금액 |
quantity | 1 | integer | 환전 횟수 |
revenue | 2106.54 | double | 매출로써 측정하고자 하는 금액 |
Map<String, Object> purchaseMap = new HashMap<>();
purchaseMap.put("transaction_id", "EX47949398");
Map<String, Object> productMap = new HashMap<>();
productMap.put("currency_a", "KRW");
productMap.put("currency_value_a", 300000);
productMap.put("currency_b", "HKD");
productMap.put("currency_value_b", 2106.54);
productMap.put("quantity", 1);
productMap.put("revenue", 2106.54);
purchaseMap.put("product", productMap);
DOT.logPurchase(purchaseMap);
val purchaseMap = mutableMapOf<String,Any>()
purchaseMap["transaction_id"] = "EX47949398"
purchaseMap["currency"] = "KRW"
val productMap = mutableMapOf<String,Any>()
productMap["currency_a"] = "KRW"
productMap["currency_value_a"] = 300000
productMap["currency_b"] = "HKD"
productMap["currency_value_b"] = 2106.54
productMap["quantity"] = 1
productMap["revenue"] = 2106.54
purchaseMap["product"] = productMap
DOT.logPurchase(purchaseMap)
let purchase = NSMutableDictionary()
purchase["transaction_id"] = "EX47949398"
var product : [String: Any] = [:]
product["currency_a"] = "KRW"
product["currency_value_a"] = 300000
product["currency_b"] = "HKD"
product["currency_value_b"] = 2106.54
product["quantity"] = 1
product["revenue"] = 2106.54
purchase["product"] = product
DOT.logPurchase(purchase)
NSMutableDictionary *purchase = [[NSMutableDictionary alloc] init];
[purchase setValue:@"EX47949398" forKey:@"transaction_id"];
NSMutableDictionary *product = [[NSMutableDictionary alloc] init];
[product setValue:@"KRW" forKey:@"currency_a"];
[product setValue:[NSNumber numberWithInt:300000] forKey:@"currency_value_a"];
[product setValue:@"HKD" forKey:@"currency_b"];
[product setValue:[NSNumber numberWithInt:2106.54]forKey:@"currency_value_b"];
[product setValue:[NSNumber numberWithInt:1] forKey:@"quantity"];
[product setValue:[NSNumber numberWithInt:2106.54] forKey:@"revenue"];
[purchase setValue:product forKey:@"product"];
[DOT logPurchase:purchase];
var purchase = new Object();
purchase["transaction_id"] = "EX47949398";
var product = new Object();
product["currency_a"] = "KRW";
product["currency_value_a"] = 300000;
product["currency_b"] = "HKD";
product["currency_value_b"] = 2106.54;
product["quantity"] = 1;
product["revenue"] = 2106.54;
purchase["product"] = product;
DOT.logPurchase(purchase);
var purchase = new Object();
purchase["transaction_id"] = "EX47949398";
var product = new Object();
product["currency_a"] = "KRW";
product["currency_value_a"] = 300000;
product["currency_b"] = "HKD";
product["currency_value_b"] = 2106.54;
product["quantity"] = 1;
product["revenue"] = 2106.54;
purchase["product"] = product;
WDOT.logPurchase(purchase);
// .dart 에서 호출 할 때
Map purchase = {};
purchase["transaction_id"] = "EX47949398";
Map product = {};
product["currency_a"] = "KRW";
product["currency_value_a"] = 300000;
product["currency_b"] = "HKD";
product["currency_value_b"] = 2106.54;
product["quantity"] = 1;
product["revenue"] = 2106.54;
purchase["product"] = product;
DOT.logPurchase(purchase);
// webview 에서 호출 할 때
var purchase = new Object();
purchase["transaction_id"] = "EX47949398";
var productArray = new Array();
for( var inx = 0; inx < purchaselist[환전목록].length; inx++){
var purchaseProduct = purchaselist[inx];
var product = new Object();
product["currency_a"] = "KRW";
product["currency_value_a"] = 300000;
product["currency_b"] = "HKD";
product["currency_value_b"] = 2106.54;
product["quantity"] = 1;
product["revenue"] = 2106.54;
productArray.push(product);
purchase["product"] = productArray;
DotFlutterDataBridge.postMessage(JSON.stringify({
method : "logPurchase",
data: purchase
}));
// .js 에서 호출 할 때
NativeModules.DotReactBridge.logPurchase(JSON.stringify({
transaction_id : "EX47949398",
product : {
currency_a : "KRW",
currency_value_a : 300000,
currency_b : "HKD",
currency_value_b : 2106.54,
quantity : 1,
revenue : 2106.54
}
}));
// webview 에서 호출 할 때
window.ReactNativeWebView.postMessage(JSON.stringify({
method:"logPurchase",
data : {
transaction_id : "EX47949398",
product : {
currency_a : "KRW",
currency_value_a : 300000,
currency_b : "HKD",
currency_value_b : 2106.54,
quantity : 1,
revenue : 2106.54
}
}
}));
Dictionary<string, object> purchase = new Dictionary<string, object>();
purchase.Add("transaction_id", "EX47949398");
Dictionary<string, object> product = new Dictionary<string, object>();
product.Add("currency_a", "KRW");
product.Add("currency_value_a", 300000);
product.Add("currency_b", "HKD");
product.Add("currency_value_b", 2106.54);
product.Add("quantity", 1);
product.Add("revenue", 2106.54);
List<Dictionary<string, object>> productList = new List<Dictionary<string, object>>();
productList.Add(product);
purchase.Add("product", productList);
DOT.logPurchase(purchase);
보험 가입
보험 가입이 완료된 시점에 아래 코드를 추가합니다.
선택 속성
Key | Value 예시 | Type | 설명 |
transaction_id | SF49484900 | string | 주문번호 |
currency | KRW | string | 결제 통화코드 |
insurance_id | PP030401_001 | string | 보험상품코드 |
insurance_name | 다이렉트 건강보험 | string | 보험 명칭 |
insurance_subtype_a | 갱신형 | string | 상품 속성 a |
insurance_subtype_b | 특약1 | string | 상품 속성 b |
g16 | 90 | float | 만기연령 |
quantity | 1 | integer | 구매한 보험 개수 |
revenue | 123000 | double | 매출로써 측정하고자 하는 금액 |
Map<String, Object> purchaseMap = new HashMap<>();
purchaseMap.put("transaction_id", "SF49484900");
purchaseMap.put("currency", "KRW");
Map<String, Object> productMap = new HashMap<>();
productMap.put("insurance_id", "PP030401_001");
productMap.put("insurance_name", "다이렉트 건강보험");
productMap.put("insurance_subtype_a", "갱신형");
productMap.put("insurance_subtype_b", "특약1");
productMap.put("g16", 90);
productMap.put("quantity", 1);
productMap.put("revenue", 123000);
purchaseMap.put("product", productMap);
DOT.logPurchase(purchaseMap);
val purchaseMap = mutableMapOf<String,Any>()
purchaseMap["transaction_id"] = "SF49484900"
purchaseMap["currency"] = "KRW"
val productMap = mutableMapOf<String,Any>()
productMap["insurance_id"] = "PP030401_001"
productMap["insurance_name"] = "다이렉트 건강보험"
productMap["insurance_subtype_a"] = "갱신형"
productMap["insurance_subtype_b"] = "특약1"
productMap["g16"] = 90
productMap["quantity"] = 1
productMap["revenue"] = 123000
purchaseMap["product"] = productMap
DOT.logPurchase(purchaseMap)
let purchase = NSMutableDictionary()
purchase["transaction_id"] = "SF49484900"
purchase["currency"] = "KRW"
var product : [String: Any] = [:]
product["insurance_id"] = "PP030401_001"
product["insurance_name"] = "다이렉트 건강보험"
product["insurance_subtype_a"] = "갱신형"
product["insurance_subtype_b"] = "특약1"
product["g16"] = 90
product["quantity"] = 1
product["revenue"] = 123000
purchase["product"] = product
DOT.logPurchase(purchase)
NSMutableDictionary *purchase = [[NSMutableDictionary alloc] init];
[purchase setValue:@"SF49484900" forKey:@"transaction_id"];
[purchase setValue:@"KRW" forKey:@"currency"];
NSMutableDictionary *product = [[NSMutableDictionary alloc] init];
[product setValue:@"PP030401_001" forKey:@"insurance_id"];
[product setValue:@"다이렉트 건강보험" forKey:@"insurance_name"];
[product setValue:@"갱신형" forKey:@"insurance_subtype_a"];
[product setValue:@"특약1" forKey:@"insurance_subtype_b"];
[product setValue:[NSNumber numberWithInt:90] forKey:@"g16"];
[product setValue:[NSNumber numberWithInt:1] forKey:@"quantity"];
[product setValue:[NSNumber numberWithInt:123000] forKey:@"revenue"];
[purchase setValue:product forKey:@"product"];
[DOT logPurchase:purchase];
var purchase = new Object();
purchase["transaction_id"] = "SF49484900";
purchase["currency"] = "KRW";
var product = new Object();
product["insurance_id"] = "PP030401_001";
product["insurance_name"] = "다이렉트 건강보험";
product["insurance_subtype_a"] = "갱신형";
product["insurance_subtype_b"] = "특약1";
product["g16"] = 90;
product["quantity"] = 1;
product["revenue"] = 123000;
purchase["product"] = product;
DOT.logPurchase(purchase);
var purchase = new Object();
purchase["transaction_id"] = "SF49484900";
purchase["currency"] = "KRW";
var product = new Object();
product["insurance_id"] = "PP030401_001";
product["insurance_name"] = "다이렉트 건강보험";
product["insurance_subtype_a"] = "갱신형";
product["insurance_subtype_b"] = "특약1";
product["g16"] = 90;
product["quantity"] = 1;
product["revenue"] = 123000;
purchase["product"] = product;
WDOT.logPurchase(purchase);
// .dart 에서 호출 할 때
Map purchase = {};
purchase["transaction_id"] = "SF49484900";
purchase["currency"] = "KRW";
Map product = {};
product["insurance_id"] = "PP030401_001";
product["insurance_name"] = "다이렉트 건강보험";
product["insurance_subtype_a"] = "갱신형";
product["insurance_subtype_b"] = "특약1";
product["g16"] = 90;
product["quantity"] = 1;
product["revenue"] = 123000;
purchase["product"] = product;
DOT.logPurchase(purchase);
// webview 에서 호출 할 때
var purchase = new Object();
purchase["transaction_id"] = "SF49484900";
purchase["currency"] = "KRW";
var productArray = new Array();
for( var inx = 0; inx < purchaselist[보험목록].length; inx++){
var purchaseProduct = purchaselist[inx];
var product = new Object();
product["insurance_id"] = "PP030401_001";
product["insurance_name"] = "다이렉트 건강보험";
product["insurance_subtype_a"] = "갱신형";
product["insurance_subtype_b"] = "특약1";
product["g16"] = 90;
product["quantity"] = 1;
product["revenue"] = 123000;
productArray.push(product);
purchase["product"] = productArray;
DotFlutterDataBridge.postMessage(JSON.stringify({
method : "logPurchase",
data: purchase
}));
// .js 에서 호출 할 때
NativeModules.DotReactBridge.logPurchase(JSON.stringify({
transaction_id : "SF49484900",
currency : "KRW",
product : {
insurance_id : "PP030401_001",
insurance_name : "다이렉트 건강보험",
insurance_subtype_a : "갱신형",
insurance_subtype_b : "특약1",
g16 : 90,
quantity : 1,
revenue : 123000
}
}));
// webview 에서 호출 할 때
window.ReactNativeWebView.postMessage(JSON.stringify({
method:"logPurchase",
data : {
transaction_id : "SF49484900",
currency : "KRW",
product : {
insurance_id : "PP030401_001",
insurance_name : "다이렉트 건강보험",
insurance_subtype_a : "갱신형",
insurance_subtype_b : "특약1",
g16 : 90,
quantity : 1,
revenue : 123000
}
}
}));
Dictionary<string, object> purchase = new Dictionary<string, object>();
purchase.Add("transaction_id", "SF49484900");
purchase.Add("currency", "KRW");
Dictionary<string, object> product = new Dictionary<string, object>();
product.Add("insurance_id", "PP030401_001");
product.Add("insurance_name", "다이렉트 건강보험");
product.Add("insurance_subtype_a", "갱신형");
product.Add("insurance_subtype_b", "특약1");
product.Add("g16", 90);
product.Add("quantity", 1);
product.Add("revenue", 123000);
List<Dictionary<string, object>> productList = new List<Dictionary<string, object>>();
productList.Add(product);
purchase.Add("product", productList);
DOT.logPurchase(purchase);
투자
상품에 대한 투자가 완료된 시점에 아래 코드를 추가합니다.
선택 속성
Key | Value 예시 | Type | 설명 |
transaction_id | IV7878930 | string | 주문번호 |
currency | KRW | string | 결제 통화코드 |
investment_id | 20-LN-4501 | string | 투자상품코드 |
investment_name | 제4178차 근린생활시설 신축사업 사업자대출 리파이낸싱 | string | 상품 명칭 |
g15 | 13 | float | 수익률 |
quantity | 1 | integer | 투자한 상품 개수 |
revenue | 60000 | double | 매출로써 측정하고자 하는 금액 |
Map<String, Object> purchaseMap = new HashMap<>();
purchaseMap.put("transaction_id", "IV7878930");
purchaseMap.put("currency", "KRW");
Map<String, Object> productMap = new HashMap<>();
productMap.put("investment_id", "20-LN-4501");
productMap.put("investment_name", "제4178차 근린생활시설 신축사업 사업자대출 리파이낸싱");
productMap.put("g15", 13);
productMap.put("quantity", 1);
productMap.put("revenue", 60000);
purchaseMap.put("product", productMap);
DOT.logPurchase(purchaseMap);
val purchaseMap = mutableMapOf<String,Any>()
purchaseMap["transaction_id"] = "IV7878930"
purchaseMap["currency"] = "KRW"
val productMap = mutableMapOf<String,Any>()
productMap["investment_id"] = "20-LN-4501"
productMap["investment_name"] = "제4178차 근린생활시설 신축사업 사업자대출 리파이낸싱"
productMap["g15"] = 13
productMap["quantity"] = 1
productMap["revenue"] = 60000
purchaseMap["product"] = productMap
DOT.logPurchase(purchaseMap)
let purchase = NSMutableDictionary()
purchase["transaction_id"] = "IV7878930"
purchase["currency"] = "KRW"
var product : [String: Any] = [:]
product["investment_id"] = "20-LN-4501"
product["investment_name"] = "제4178차 근린생활시설 신축사업 사업자대출 리파이낸싱"
product["g15"] = 13
product["quantity"] = 1
product["revenue"] = 60000
purchase["product"] = product
DOT.logPurchase(purchase)
NSMutableDictionary *purchase = [[NSMutableDictionary alloc] init];
[purchase setValue:@"IV7878930" forKey:@"transaction_id"];
[purchase setValue:@"KRW" forKey:@"currency"];
NSMutableDictionary *product = [[NSMutableDictionary alloc] init];
[product setValue:@"20-LN-4501" forKey:@"investment_id"];
[product setValue:@"제4178차 근린생활시설 신축사업 사업자대출 리파이낸싱" forKey:@"investment_name"];
[product setValue:[NSNumber numberWithInt:13] forKey:@"g15"];
[product setValue:[NSNumber numberWithInt:1] forKey:@"quantity"];
[product setValue:[NSNumber numberWithInt:60000] forKey:@"revenue"];
[purchase setValue:product forKey:@"product"];
[DOT logPurchase:purchase];
var purchase = new Object();
purchase["transaction_id"] = "IV7878930";
purchase["currency"] = "KRW";
var product = new Object();