From your first request to a better payment experience.
Create a sandbox payment, present a checkout to your customer, then consume payment events on your server. The contract below is a design proposal; no live API is exposed by this frontend.
Create a sandbox workspace and use a placeholder API key.
Use a unique order reference and an idempotency key.
Wait for a verified server-side event before fulfilling an order.
/v1/payments// Proposed contract · no live endpoint
const response = await fetch(
'https://api.paytovio.example/v1/payments',
{
method: 'POST',
headers: {
Authorization: 'Bearer sk_sandbox_PLACEHOLDER',
'Content-Type': 'application/json',
'Idempotency-Key': 'order_demo_1048'
},
body: JSON.stringify({
amount: '249.00',
token: 'USDC',
network: 'base',
order_id: 'order_demo_1048'
})
}
);
if (!response.ok) throw new Error('Payment request failed');
const payment = await response.json();
Server-side authentication, input validation, wallet ownership checks, network monitoring, finality policy, signature verification and operational controls require separate implementation. Fulfill orders only from a verified backend state.