Function libindy_sys::indy_register_payment_method [−][src]
pub unsafe extern "C" fn indy_register_payment_method(
command_handle: indy_handle_t,
payment_method: *const c_char,
create_payment_address_cb: indyCreatePaymentAddressCB,
add_request_fees_cb: indyAddRequestFeesCB,
parse_response_with_fees_cb: indyParseResponseWithFeesCB,
build_get_payment_sources_request_cb: indyBuildGetPaymentSourcesRequestCB,
parse_get_payment_sources_response_cb: indyParseGetPaymentSourcesResponseCB,
build_payment_req_cb: indyBuildPaymentReqCB,
parse_payment_response_cb: indyParsePaymentResponseCB,
build_mint_req_cb: indyBuildMintReqCB,
build_set_txn_fees_req_cb: indyBuildSetTxnFeesReqCB,
build_get_txn_fees_req_cb: indyBuildGetTxnFeesReqCB,
parse_get_txn_fees_response_cb: indyParseGetTxnFeesResponseCB,
build_verify_payment_req_cb: indyBuildVerifyPaymentReqCB,
parse_verify_payment_response_cb: indyParseVerifyPaymentResponseCB,
cb: indy_empty_cb
) -> indy_error_t
Registers custom wallet storage implementation.
It allows library user to provide custom wallet implementation.
#Params command_handle: Command handle to map callback to caller context. type_: Wallet type name. create: WalletType create operation handler open: WalletType open operation handler close: Wallet close operation handler delete: WalletType delete operation handler add_record: WalletType add record operation handler update_record_value: WalletType update record value operation handler update_record_tags: WalletType update record tags operation handler add_record_tags: WalletType add record tags operation handler delete_record_tags: WalletType delete record tags operation handler delete_record: WalletType delete record operation handler get_record: WalletType get record operation handler get_record_id: WalletType get record id operation handler get_record_type: WalletType get record type operation handler get_record_value: WalletType get record value operation handler get_record_tags: WalletType get record tags operation handler free_record: WalletType free record operation handler search_records: WalletType search records operation handler search_all_records: WalletType search all records operation handler get_search_total_count: WalletType get search total count operation handler fetch_search_next_record: WalletType fetch search next record operation handler free_search: WalletType free search operation handler free: Handler that allows to de-allocate strings allocated in caller code
#Returns Error code