Fraud prevention: what to send and why
Our checks look at every payment before its payer is shown where to pay. The more we know of your customer, the better they tell a scam from an honest customer, and the less often an honest one is stopped for nothing. You see things we cannot: where the customer signed in with you from, and, when the payer never opens our page, their device and browser. Send them in customer with POST /payments.
This is how Stripe’s Radar works: it asks for the same kind of data, and answers each charge’s outcome.
What to send
Section titled “What to send”Every field is optional, and taken in every market: send those you have, and leave out those you do not. We never answer them back, in the payment or in its webhooks.
| Field | Type | Why it helps |
|---|---|---|
login_ip |
IPv4 or IPv6 address | Where the customer signed in with you from. It helps us tell when many accounts that sign in from one address are one person, or when a sign-in far from where the customer pays from (customer.ip) is an account taken over. |
device_id |
Text, up to 200 characters | Your id of the customer’s device. It helps us tell when one device pays for many customers. It matters most in host to host, where the payer never opens our page and we cannot see their device ourselves. |
user_agent |
Text, up to 1000 characters | The customer’s browser and device, for host to host too: what our page would otherwise read from the payer’s browser. |
A value outside these limits is 400 parameter_invalid with param naming the field, such as customer.login_ip, and no payment is made. Any other field in customer that is not in the API reference is 400 parameter_unknown.
curl https://api.dev.novaro.ink/payments \ -H "Authorization: Bearer sk_live_in_…" \ -H "PSP-Version: 2026-11-22.acacia" \ -H "Idempotency-Key: order_8812-1:create-payment" \ -H "Content-Type: application/json" \ -d '{ "amount": 49900, "currency": "INR", "payment_method_data": { "type": "upi" }, "merchant_reference": "order_8812-1", "customer": { "id": "cus_4921", "ip": "203.0.113.24", "login_ip": "203.0.113.24", "device_id": "dev_7f3a91", "user_agent": "Mozilla/5.0 (Linux; Android 14) Mobile" } }'The outcome
Section titled “The outcome”Every payment answers outcome, what our checks decided when it was made. It never changes.
outcome.type |
What it means |
|---|---|
authorized |
Our checks passed, and the payment goes on as usual. It says nothing of whether it is paid: its status does. |
blocked |
Our checks refused the payment. It is failed from the start. |
outcome.risk_level and outcome.reason, which Stripe’s outcome has, are kept for later and not sent yet. New types may be added: treat one you do not know as authorized, and go by the payment’s status. GET /payments?outcome_type=blocked lists your blocked payments.
A blocked payment
Section titled “A blocked payment”A blocked payment is no error: POST /payments answers 201, as for any payment it makes, on every version.
- Its
statusisfailed, itsfailure_codeisblockedand itsoutcome.typeisblocked. Every other payment’sfailure_codeisnull. - It has no details to pay to:
next_actionisnull. A hosted payment’scheckout.urlopens the page of a payment that is not ready yet: it says the payment is being prepared, then to try again later. Don’t send the payer to it. - You get the webhook event
payment.failed, as for any payment that fails. - We do not say which check refused it.
Show your customer that paying is temporarily unavailable, and nothing more: do not say the payment was blocked or why. Our page says no more than that either: it never names a block or shows details to pay to.
A blocked payment keeps its merchant_reference, as every payment does: another try needs a new one (order_8812-2), as with any new attempt to pay. Retrying with the same Idempotency-Key answers the same blocked payment again.
If you think a customer is blocked by mistake, ask our support.