Creates a new charge for a credit card, terminal, payment token, or cash source. Set capture=false to create a pre-authorization that must be captured separately.
Authentication β HTTP Basic Auth
All v2.0 endpoints use HTTP Basic Authentication. Set Authorization: Basic base64(username:password). Contact PayFacto for credentials.
Environment Base URLs
UAT: https://uat.ca.api.payfacto.cloud/payments/v1 | Production: https://ca.api.payfacto.cloud/payments/v1
Content-Type
All request bodies require Content-Type: application/json.
Idempotency
Include Idempotency-Key header (max 64 chars) on POST requests. 200 = duplicate; 201 = newly created.
Amounts
All monetary amounts are positive integers in cents. $12.99 = 1299.
Authenticate with HTTP Basic Auth. Include Content-Type: application/json and optionally Idempotency-Key.
Request body fields
paymentMethod.type values
Use UAT credentials during testing.
Response fields (charge object)
status values
result.declineCode values