Cryptopay
Quick Start
- Sign up at cryptopay.me and obtain API credentials
- Create a terminal in the Admin Console with the parameters below
- Start processing — the adapter is pre-built and ready to use
Overview
Cryptopay — Payments (cryptocurrency payments)
| Provider ID | cryptopay |
| Category | Crypto & Blockchain |
| Website | cryptopay.me |
Supported operations: Create Invoice (payments_authorize) Get Invoice Status (payments_status)
Authentication
Method: HMAC SHA-1 (Custom signature scheme)
Algorithm signing:
Step 1: MD5 Hash Payload
payload_hash = md5(request_body).hexdigest().lowercase()
Step 2: Signature String
signature_string =
"{HTTP_METHOD}\n" +
"{payload_hash}\n" +
"application/json\n" +
"{date_iso8601}\n" +
"{api_path}"
Example:
POST
d41d8cd98f00b204e9800998ecf8427e
application/json
2024-01-15T10:30:00+00:00
/api/invoices
Step 3: HMAC SHA-1
signature = hex(hmac_sha1(signature_string, api_secret))
Step 4: Authorization Header
HMAC {api_key}:{signature}
Additional header:
Date: 2024-01-15T10:30:00+00:00
Configuration
Required Parameters
| Parameter | Description |
|---|---|
base_url | Base API URL |
api_key | Public API Key |
api_secret | Secret key for HMAC |
pay_currency | Cryptocurrency for payment (required) |
network | Blockchain network (optional) |
Status Mapping
| Provider Status | 4pay Status | Description |
|---|---|---|
new | AuthenticationPending | Invoice created, awaiting payment |
completed | Charged | Payment completed |
cancelled | Failure | Invoice cancelled |
refunded | Refunded | Payment returned |
unresolved | Pending | Unresolved status |