def _serializable_req(pay_req):
    """
    Convert payment request json (from signed JWT)
    to dict that can be serialized.
    """
    pay_req = pay_req.copy()
    del pay_req['_config']
    return pay_req