{"info":{"_postman_id":"nexuslab-api-v1","description":"NEXUSLAB API v1 collection. Set the collection variables: base_url (live: https://payment.nexuslab.dev.cv), api_key (your brand key, header-only) or sandbox_key (nx_test_...) for test mode.","name":"NEXUSLAB Payment Gateway — API v1","schema":"https://schema.getpostman.com/json/collection/v2.1.0/collection.json"},"item":[{"name":"Create Payment (v1)","request":{"body":{"mode":"raw","options":{"raw":{"language":"json"}},"raw":"{\n  \"cus_name\": \"Karim Uddin\",\n  \"cus_email\": \"karim@example.com\",\n  \"amount\": 1250.00,\n  \"success_url\": \"https://yourshop.com/payment/success\",\n  \"cancel_url\": \"https://yourshop.com/payment/cancel\",\n  \"webhook_url\": \"https://yourshop.com/webhooks/nexuslab\",\n  \"metadata\": { \"order_id\": \"1001\" }\n}"},"description":"Creates a payment and returns payment_url + transaction_id. Copy transaction_id into the collection variable for the Verify request.","header":[{"key":"API-KEY","value":"{{api_key}}"},{"key":"Content-Type","value":"application/json"}],"method":"POST","url":{"host":["{{base_url}}"],"path":["api","v1","payment","create"],"raw":"{{base_url}}/api/v1/payment/create"}}},{"name":"Verify Payment (v1)","request":{"body":{"mode":"raw","options":{"raw":{"language":"json"}},"raw":"{\n  \"transaction_id\": \"{{transaction_id}}\"\n}"},"description":"Server-side verification. Status: PENDING / PROCESSING / COMPLETED / FAILED / CANCELLED / EXPIRED. Always compare the returned amount with your order total.","header":[{"key":"API-KEY","value":"{{api_key}}"},{"key":"Content-Type","value":"application/json"}],"method":"POST","url":{"host":["{{base_url}}"],"path":["api","v1","payment","verify"],"raw":"{{base_url}}/api/v1/payment/verify"}}},{"name":"Create Payment — Sandbox","request":{"body":{"mode":"raw","options":{"raw":{"language":"json"}},"raw":"{\n  \"cus_name\": \"Test Customer\",\n  \"cus_email\": \"test@example.com\",\n  \"amount\": 100.00,\n  \"success_url\": \"https://example.com/payment/success\",\n  \"cancel_url\": \"https://example.com/payment/cancel\",\n  \"metadata\": { \"order_id\": \"TEST-1001\" }\n}"},"description":"Sandbox mode: returns a Sandbox Checkout URL where you simulate success or failure. No real money.","header":[{"key":"API-KEY","value":"{{sandbox_key}}"},{"key":"Content-Type","value":"application/json"}],"method":"POST","url":{"host":["{{base_url}}"],"path":["api","v1","payment","create"],"raw":"{{base_url}}/api/v1/payment/create"}}},{"name":"Verify Payment — Sandbox","request":{"body":{"mode":"raw","options":{"raw":{"language":"json"}},"raw":"{\n  \"transaction_id\": \"{{transaction_id}}\"\n}"},"description":"Sandbox transactions can only be verified with the sandbox key (live key returns TRANSACTION_NOT_FOUND, and vice versa).","header":[{"key":"API-KEY","value":"{{sandbox_key}}"},{"key":"Content-Type","value":"application/json"}],"method":"POST","url":{"host":["{{base_url}}"],"path":["api","v1","payment","verify"],"raw":"{{base_url}}/api/v1/payment/verify"}}}],"variable":[{"key":"base_url","value":"https://payment.nexuslab.dev.cv"},{"key":"api_key","value":""},{"key":"sandbox_key","value":""},{"key":"transaction_id","value":""}]}