name: creem-api
Creem is a Merchant of Record (MoR) payment platform. Creem is the legal seller, so it owns tax compliance, payment processing, chargebacks, and refunds.
https://api.creem.iohttps://test-api.creem.iox-api-key: <api_key> header.1000 = $10.00). Use 0 for free products.USD, EUR).The signature is sent in the creem-signature header as a HMAC-SHA256 hex digest of the raw request body.
import hmac
import hashlib
def verify_creem_signature(payload_bytes: bytes, signature: str, secret: str) -> bool:
if not signature or not secret:
return False
computed = hmac.new(secret.encode("utf-8"), payload_bytes, hashlib.sha256).hexdigest()
return hmac.compare_digest(computed.lower(), signature.lower())
POST /v1/checkouts
{
"product_id": "prod_...",
"request_id": "order_123_pay_456",
"customer": { "email": "user@example.com" },
"success_url": "https://example.com/payment/success",
"metadata": {
"order_id": "123",
"payment_id": "456",
"user_id": "789"
}
}
Response returns { "id": "ch_...", "checkout_url": "https://checkout.creem.io/ch_..." }.