"""
Verify that ACCT_lvf3klr95s6enu7 was created under the OLD key (sk_test_af4f8b02...)
because the Django runserver process was started 45 mins ago before .env was edited.
"""
import requests
import json

OLD_KEY = 'sk_test_af4f8b0250f2031e0e2fb753e184e6618b53a1e1'

resp = requests.get(
    'https://api.paystack.co/subaccount/ACCT_lvf3klr95s6enu7',
    headers={'Authorization': f'Bearer {OLD_KEY}'},
    timeout=30
)
print("Querying ACCT_lvf3klr95s6enu7 with OLD KEY:")
print(json.dumps(resp.json(), indent=2))
