Get from zero to your first live charge in about ten minutes.
Grab your sk_live_ and pk_live_ keys from the dashboard.
Base URL https://api.clearrail.online/v1. Auth is HTTP Basic with your secret key.
Subscribe at /v1/webhook_endpoints and verify the ClearRail-Signature header.
import clearrail clearrail.api_key = "sk_live_rsp_8f2a...redacted" charge = clearrail.Payment.create( amount=4200, currency="usd", source="tok_visa", description="Order #10293", ) print(charge.id, charge.status)
Full reference at api.clearrail.online · OpenAPI spec: openapi.json