def METHOD_NAME(self, instance):
    pm = instance.get_implementation()
    api = PaypalAPI(pm)
    s = StringIO()
    api.ensure_access_token()
    s.write("Paypal API access credentials correct,\n")
    if 'https://uri.paypal.com/services/reporting/search/read ' not in api.tokenscope:
        s.write("Paypal token does <strong>NOT</strong> have have <i>Transaction search</i> permissions!\n")
    if 'https://api.paypal.com/v1/payments/.* ' not in api.tokenscope:
        s.write("Paypal token does <strong>NOT</strong> have have <i>Accept payments</i> permissions!\n")
    return s.getvalue()