Customer Present Cloud API

Customer Present Cloud API

The Customer Present Cloud API (CPCA) enables OS-agnostic integration with Lane/Series countertop terminals via a simple REST API. No SDK required — works with any programming language that can make HTTPS requests.

Base URL

https://secure.cyogate.net/api/cpca/v1/

Core Endpoints

EndpointMethodDescription
/registerPOSTRegister a new terminal
/transactionPOSTInitiate a transaction on a terminal
/asyncstatusPOSTPoll transaction status
/cancelPOSTCancel in-progress transaction
/terminals/listPOSTList registered terminals
/terminals/statusPOSTGet terminal status
/terminals/rebootPOSTRemotely reboot a terminal

Complete Transaction Flow

// 1. Initiate transaction
$response = gateway_post('https://secure.cyogate.net/api/cpca/v1/transaction', [
    'security_key' => PRIVATE_KEY,
    'terminal_id'  => $terminal_id,
    'type'         => 'sale',
    'amount'       => '45.00',
    'order_id'     => 'ORDER-123',
]);
$ref = $response['transaction_ref'];

// 2. Poll for result
do {
    sleep(2);
    $status = gateway_post('.../asyncstatus', ['security_key' => PRIVATE_KEY, 'transaction_ref' => $ref]);
} while ($status['status'] === 'pending' || $status['status'] === 'processing');

// 3. Handle result
if ($status['status'] === 'complete' && $status['response'] == '1') {
    fulfill_order($status['transactionid']);
}

See Lane/Series for full device setup and configuration guides.

Take Your Business to the Next Level

Find out how our innovative payment solutions can benefit your business. Reach out to us for more information or to get started!

Let's Get Started