Card Payments
This endpoint initiates a card payment transaction. Encrypted card_hash has the following JSON fields:
card_type: Type of card (e.g., MASTER, VISA, etc.)cardname: Cardholder Namecard_number: Card Digitscard_cvv: Card CVV or CVV2expiry_month: Card Expiry Monthexpiry_year: Card Expiry Yeartoken: Card token from previous transaction response (if provided, leave card details empty)
Card AES (CBC Mode) Encryption Formula:
Base64Encode(AESEncrypt(card_json_data, 'secret', 'key'))
(e.g., Output: NVlTU29VRUlPeUc2ZGc3cFlzTHpzb2hXZXN1U3RjYUlTd2w4cXhRMVkyWT0=)
Merchant platform no.
Merchant transaction reference
Transaction amount in decimal value (e.g: 5000.00)
Transaction currency example (e.g: GBP)
Customer country ISO-2 code for new customer
Customer address for new customer
Customer state for new customer
Customer city for new customer
Customer zip code for new customer
Merchant platform redirect url after 3D authentication. is completed by the customer
Customer IP address, must be unique per customer transaction.
Encrypted customer card information.
Customer Data
Response.
POST /api/v1/payment/card-processor HTTP/1.1
Host: gateway-core-test.plonictech.com
Content-Type: application/json
Accept: */*
Content-Length: 328
{
"merchant_id": "text",
"tranxRef": "text",
"amount": 1,
"currency": "text",
"billing_country": "text",
"billing_address": "text",
"billing_state": "text",
"billing_city": "text",
"billing_zipcode": "text",
"redirect_url": "text",
"ip": "text",
"card_hash": "text",
"customer": {
"email": "text",
"phonenumber": "text",
"firstname": "text",
"lastname": "text"
}
}{
"message_id": "text",
"message": "text",
"succeeded": true,
"statuscode": 1,
"data": {
"transaction_id": "text",
"merhc_tranxRef": "text",
"transactionRef": "text",
"amount": 1,
"currency": "text",
"ip": "text",
"card_details": {
"type": "text",
"first6": "text",
"last4": "text",
"expYear": "text",
"expMonth": "text",
"cardName": "text",
"token": "text"
},
"status": "text",
"authorization_url": "text",
"authorization_params": null,
"authorization_method": "text",
"transaction_date": "text"
}
}This is the transaction status after processing:
Pending | Failed | Successful
Pending_Refund | Refunded | Chargeback
Pending_Cancel | Cancelled
Merchant Reference.
Transaction Reference.
Response.
GET /api/v1/payment/query-status HTTP/1.1
Host: gateway-core-test.plonictech.com
Accept: */*
{
"message_id": "text",
"message": "text",
"succeeded": true,
"statuscode": 1,
"data": {
"transaction_id": "text",
"merhc_tranxRef": "text",
"platform_tranxRef": "text",
"amount": 1,
"currency": "text",
"card_details": {
"type": "text",
"first6": "text",
"last4": "text",
"expYear": "text",
"expMonth": "text",
"cardName": "text",
"token": "text"
},
"status": "text",
"transaction_date": "text"
}
}This endpoint fetch full transaction details with customer information
Response.
GET /api/v1/payment/{transactionid}/details HTTP/1.1
Host: gateway-core-test.plonictech.com
Accept: */*
{
"message_id": "text",
"message": "text",
"succeeded": true,
"statuscode": 1,
"data": {
"transactionId": "text",
"merchantID": "text",
"merchantTranxRef": "text",
"transactionRef": "text",
"amount": 1,
"currency": "text",
"ip": "text",
"cardDetails": {
"type": "text",
"first6": "text",
"last4": "text",
"expYear": "text",
"expMonth": "text",
"cardName": "text",
"token": "text"
},
"status": "text",
"transactionDate": "text",
"deliveryDate": "text",
"description": "text",
"customerInfo": {
"email": "text",
"phonenumber": "text",
"firstname": "text",
"lastname": "text"
}
}
}Search transactions using available filters.
Response.
GET /api/v1/payment/search HTTP/1.1
Host: gateway-core-test.plonictech.com
Content-Type: application/json
Accept: */*
Content-Length: 105
{
"pageNumber": 1,
"pageSize": 1,
"startDate": "2025-12-06T04:44:54.549Z",
"endDate": "2025-12-06T04:44:54.549Z"
}{
"data": [
{
"transaction_id": "text",
"merhc_tranxRef": "text",
"transactionRef": "text",
"amount": 1,
"currency": "text",
"card_details": {
"type": "text",
"first6": "text",
"last4": "text",
"expYear": "text",
"expMonth": "text",
"cardName": "text"
},
"status": "text",
"transaction_date": "text"
}
],
"currentPage": 1,
"totalPages": 1,
"totalCount": 1,
"pageSize": 1,
"hasPreviousPage": true,
"hasNextPage": true
}Last updated