fn verify_gateway_preimage(
preimage: &str,
payment_hash: Hash,
) -> Result<(), GatewayPayError>Expand description
Checks that the hex preimage a gateway returned hashes to payment_hash.
A mismatch is reported as a gateway error, like any other failed gateway
response, so the payment stays Funded and is refunded on cancellation or
timeout.