Documentation
Payment Integration
Integrate payment processing into your application.
Initializing a Payment
To start a payment transaction, initialize it with the payment endpoint:
curl -X POST https://api.insurlink.com/v1/payments/initialize \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"amount": 50000,
"policyId": "policy-123",
"email": "customer@example.com",
"callbackUrl": "https://yourdomain.com/payment/callback"
}'bash
Verifying Payments
After payment, verify the transaction using the reference:
curl https://api.insurlink.com/v1/payments/verify/ref-123456 \
-H "Authorization: Bearer YOUR_API_KEY"bash
Payment Callbacks
Set up webhooks to receive real-time payment notifications. See the Webhooks documentation for details.
Learn More
For complete API reference, see the Payments API documentation.