Type Definition libindy_sys::indyParseVerifyPaymentResponseCB[][src]

type indyParseVerifyPaymentResponseCB = Option<unsafe extern "C" fn(command_handle: indy_handle_t, resp_json: *const c_char, cb: indy_err_str_cb) -> indy_error_t>;

Parses Indy response with information to verify receipt

Params

command_handle: command handle to map callback to context resp_json: response for Indy request for information to verify the payment receipt

Return

txn_json: { sources: [, ] receipts: [ { recipient: , // payment address of recipient receipt: , // receipt that can be used for payment referencing and verification amount: , // amount }, ] extra: , //optional data }