Welcome to the Mock Payment & Transactions API documentation. This API allows users to interact with payment and transaction processes. The data is not stored, and responses are simulated for testing purposes. This is only for mock testing and does not handle real payments or transactions.
The base URL for all API requests is:
https://apitpoint.com/api/
Endpoint: POST /payMock.php
This endpoint simulates making a payment. It returns a success message and payment details but does not process any real payments.
https://apitpoint.com/api/payMock.php
amount = 100.00
payment_method = "Credit Card"
{
"message": "Payment processed successfully (mock)",
"amount": 100.00,
"payment_method": "Credit Card",
"status": "Success"
}
Endpoint: POST /mockPay.php
This endpoint simulates processing a payment. It returns a mock transaction ID and status.
https://apitpoint.com/api/mockPay.php
order_id = 123
amount = 200.00
{
"message": "Payment processed successfully (mock)",
"order_id": 123,
"transaction_id": "TXN9876",
"amount": 200.00,
"status": "Completed"
}
Endpoint: POST /paymentSim.php
This endpoint simulates retrieving payment details. It returns mock payment details for a given transaction.
https://apitpoint.com/api/paymentSim.php
transaction_id = TXN9876
{
"message": "Payment details retrieved successfully (mock)",
"transaction_id": "TXN9876",
"amount": 200.00,
"payment_method": "Credit Card",
"status": "Completed"
}
Endpoint: POST /transactMock.php
This endpoint simulates a transaction record. It returns a mock transaction record with details such as amount and status.
https://apitpoint.com/api/transactMock.php
transaction_id = TXN9876
{
"message": "Transaction record retrieved successfully (mock)",
"transaction_id": "TXN9876",
"amount": 200.00,
"status": "Completed",
"date": "2024-09-05"
}