Function libindy_sys::indy_parse_get_payment_sources_response[][src]

pub unsafe extern "C" fn indy_parse_get_payment_sources_response(
    command_handle: indy_handle_t,
    payment_method: *const c_char,
    resp_json: *const c_char,
    cb: indy_str_cb
) -> indy_error_t

Parses response for Indy request for getting sources list.

#Params command_handle: Command handle to map callback to caller context. payment_method: payment method to use. resp_json: response for Indy request for getting sources list Note: this param will be used to determine payment_method

#Returns sources_json - parsed (payment method and node version agnostic) sources info as json: [{ source: , // source input paymentAddress: , //payment address for this source amount: , // amount extra: , // optional data from payment transaction }]