import requests
payload = {
"amount": 50,
"success_url": "https://yourapp.com/billing/success",
"cancel_url": "https://yourapp.com/billing/cancelled"
}
response = requests.post(
"https://api.videodb.io/billing/checkout",
json=payload,
headers={"x-access-token": "your_api_key"}
)
checkout_data = response.json()
print(f"Checkout URL: {checkout_data.get('checkout_url')}")
print(f"Session ID: {checkout_data.get('id')}")