fraud_prevention.early_fraud_warning, and reacts on the customer’s subscriptions.
Sources
Each source writes the samefraud_prevention.early_fraud_warning sub-object and triggers the same reaction. Whatever the processor reports natively, PayNext translates it into one fraud type, so you read every EFW the same way.
New sources can be added without changing the payload. Whatever the source, an EFW always surfaces as
fraud_prevention.early_fraud_warning with one of the fraud types below.Fraud types
Every EFW carries afraud_type — why the issuer flagged the charge. This is a closed PayNext vocabulary: the value is always one of the seven below, regardless of which processor delivered the warning.
Subscription handling
An EFW means the cardholder is reporting the charge as fraud—a strong signal that billing should stop. When an EFW lands on a payment that belongs to an active subscription, PayNext cancels the subscription immediately;status becomes cancelled.
The cancellation is attributed automatically: the subscription’s cancellation_details.reason is set to fraud_prevention, with trigger_payment_id pointing at the reported payment. This lets you tell fraud-driven cancels apart from your own merchant_initiated ones.
All of the customer’s active subscriptions at your account are cancelled. Subscriptions the same customer holds at other merchants are not affected. Track changes via the subscription_v2.cancelled webhook.
Setup
Once enabled, the reaction is automatic—no code changes are required.
early_fraud_warning payload
Recorded on the payment whenever an EFW is received. A later warning for the same payment overwrites the fields (last-write-wins).
Read the payload
Webhook events
An EFW fires apayment_v2.updated event (with the updated fraud_prevention block) and, when it cancels a subscription, a subscription_v2.cancelled event carrying cancellation_details.reason = "fraud_prevention". See the Payment and Subscription webhook objects for the full schemas.