Skip to main content

Process with Encrypted Data

Process a payment using fully encrypted payment data.

Endpoint Information

Name: Hosted Fields Process with Encrypted Card Data
Method: POST
URL: {{BASE_URL}}/api/v1/payment/hf-process-transaction

Description

Process a transaction where all sensitive card data (number, name, expiry, secret) is encrypted on the client side before being sent to your server. This ensures that your server never handles plain-text card data.

Authentication

Type: Basic Auth

  • Username: App Key
  • Password: Secret Key

Request Body

Content-Type: application/json

{
"merchantAccountId": "100643",
"amount": "1000",
"currency": "EUR",
"card_name": "gcBqQaEykuq... (encrypted)",
"card": "MhQnymw22Qo... (encrypted)",
"expiry_date": "QKDjud9HT3t... (encrypted)",
"secret": "hJttJGsNkYQ... (encrypted)",
"is_hosted_fields_encrypted": true
}

Key Parameters

ParameterTypeRequiredDescription
cardstringYesEncrypted card number
card_namestringYesEncrypted cardholder name
expiry_datestringYesEncrypted expiry date
secretstringYesEncrypted CVV
is_hosted_fields_encryptedbooleanYesMust be true

Response

Success Response

{
"success": true,
"message": "Payment processed successfully",
"data": {
"reference": "auto_generated_ref_123",
"status": "Accepted",
"transactionId": "txn_encrypted_789xyz"
}
}