def make_402_payment(self, response, max_price):
"""Payment handling method implemented by a BitRequests subclass.
Args:
response (requests.response): 402 response from the API server.
max_price (int): maximum allowed price for a request (in satoshi).
Returns:
headers (dict):
dict of headers with payment data to send to the
API server to inform payment status for the resource.
"""
raise NotImplementedError()
评论列表
文章目录