Welcome to Hostemebd Developer Docs v2.4 API Production
Hostemebd is a robust, automated payment gateway infrastructure designed to seamlessly process personal and merchant accounts. Accept payments from customers on your websites and apps with real-time verification and instant callbacks.
Developer Notice
All requests must be made over secure HTTPS and pass your secret signature keys in HTTP request headers.
Supported Environments
Our payment gateway operates two distinct environments to ensure seamless development and reliable production deployments:
Sandbox (Testing)
Use test credentials to simulate successful and failed payments without moving real money.
Production (Live)
Connect live API and Brand credentials generated from your verified merchant portal.
Core REST APIs
The gateway redirects customers to the secure payment screen. Once completed, the customer returns to your store while your server receives transaction metadata.
1. Create Payment Endpoint
Generate a unique payment session URL by posting order details and customer data.
POSThttps://xtransactia.com/api/payment/create
2. Verify Payment Endpoint
Query the transaction status after the customer is redirected back to your success_url.
POSThttps://xtransactia.com/api/payment/verify
Required Authentication Headers
Every REST API request must include these 4 HTTP headers for authentication:
Header Key
Type
Required
Description
Content-Type
string
Required
Must always be set to application/json
API-KEY
string
Required
Your public API application key from Merchant Dashboard
SECRET-KEY
string
Required
Your confidential secret key from Merchant Dashboard
BRAND-KEY
string
Required
The unique Brand Identifier key associated with your checkout
Payment Initialization Payload
JSON payload parameters to send in the body of POST /api/payment/create:
Status message, e.g., "Payment initialized successfully"
payment_url
url string
Hosted Checkout Link where the customer must be redirected
Error Response (HTTP 400 / 401 / 500)
status
boolean
Returns false when error occurs
message
string
Specific error explanation (e.g. "Invalid API Key", "Amount required")
Redirection Query Parameters
Upon completing payment on the gateway, the customer will be redirected to your success_url or cancel_url with the following query parameters appended: ?transactionId=******&paymentMethod=***&paymentAmount=**.**&paymentFee=**.**&status=success