Paytently
Quick Start
- Sign up at paytently.com 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
Paytently payment integration
| Provider ID | paytently |
| Category | Card Processors |
| Website | paytently.com |
Authentication
HMAC-SHA256 signature with timestamp:
- Get current Unix timestamp:
timestamp = System.system_time(:second) - Form string for signing:
"{merchant_id}:{timestamp}:{body_json}" - Calculate signature:
hex(HMAC-SHA256(sign_string, secret_key)) - Add headers:
X-Merchant-ID: {merchant_id}X-Timestamp: {timestamp}X-Signature: {signature}
Important: For GET-requests (status) body is empty — string signing: "{merchant_id}:{timestamp}:"
Status Mapping
| Provider Status | 4pay Status | Description |
|---|---|---|
APPROVED, COMPLETED, SETTLED, CAPTURED | charged | |
PENDING, INITIATED, PROCESSING | charging | |
DECLINED, FAILED, CANCELLED, EXPIRED, VOIDED | rejected |