Payment (gRPC)
Protocol
Messages
message Common {
string target_name = 1; // Payments
string target_svc = 2; // payments.hefi.life
string target_package = 3; // g00.payments.v1
string target_api = 4;
string source_svc = 5;
string source_ver = 6;
string source_addr = 7;
string req_timestamp = 8;
string language_code = 9;
string rsp_timestamp = 10;
string tran_no = 11;
string res_code = 12;
string res_message = 13;
}
message PayData {
enum State {
START_PAY = 0;
REQUEST_TRANSFER = 1;
TRANSFER = 2;
END_PAY = 3;
START_REWARD = 4;
END_REWARD = 5;
}
message Content {
State state = 1;
string tran_no = 2;
string user_uuid = 3;
string token_id = 4; // not used; only for compatibility
string user_address = 5;
int64 expiration_time = 6;
string settlement_address = 7;
string store_name = 8;
string token_amount = 9;
string transfer_key = 10;
string transfer_signature = 11;
string transfer_comment = 12;
string transfer_transaction_id = 13;
string approval_no = 14;
string approval_date = 15;
string exchange_date_index = 16;
string exchange_rate = 17;
string exchange_amount = 18;
string exchange_currency = 19;
string reward_id = 20;
string reward_date = 21;
string reward_reason = 22;
string tid = 23;
string contract_address = 24;
string token_symbol = 25;
string hash_key = 26;
}
Common common = 1;
Content content = 2;
}Field Name
Description
Services
Payment
Approval

DoPayment(START_PAY)
Field Name
Description
StartPayment(START_PAY)
Field Name
Description
DoPayment(REQUEST_TRANSFER)
Field Name
Description
StartPayment(REQUEST_TRANSFER)
Field Name
Description
DoPayment(TRANSFER)
Field Name
Description
StartPayament(END_PAY)
Field Name
Description
DoPayment(END_PAY)
Field Name
Description
Cancellation
Field Name
Description
Field Name
Description
Reward
Issuance
Field Name
Description
Field Name
Description
Reward

DoPayment(START_PAY)
Field Name
Description
StartPayment(START_REWARD)
Field Name
Description
DoPayment(END_REWARD)
Field Name
Description
StartPayment(END_REWARD)
Field Name
Description

DoPayment(START_REWARD)
Field Name
Description
DoPayment(END_REWARD)
Field Name
Description
Cancellation
Field Name
Description
Field Name
Description
Error
Type
resCode
resMessage
Last updated
