def receive(xpub, callback, api_key):
params = {'<STR_LIT>': xpub, '<STR_LIT:key>': api_key, '<STR_LIT>': callback}<EOL>resource = '<STR_LIT>' + util.urlencode(params)<EOL>resp = util.call_api(resource, base_url='<STR_LIT>')<EOL>json_resp = json.loads(resp)<EOL>payment_response = ReceiveResponse(json_resp['<STR_LIT:address>'],<EOL>json_resp['<STR_LIT:index>'],<EOL>json_resp['<STR_LIT>'])<EOL>return payment_response<EOL>
Call the '/v2/receive' endpoint and create a forwarding address.

    :param str xpub: extended public key to generate payment address
    :param str callback: callback URI that will be called upon payment
    :param str api_key: Blockchain.info API V2 key
    :return: an instance of :class:`ReceiveResponse` class