Function libindy_sys::indy_parse_verify_payment_response[][src]

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

Parses Indy response with information to verify receipt

Params

command_handle: Command handle to map callback to caller context. payment_method: payment method to use resp_json: response of the ledger for verify txn

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 }