Risk Context
The Risk Context endpoint allows you to provide PayPal with session-level fraud signals before a transaction is submitted. This data is used by PayPal's fraud evaluation systems to assess transaction risk and can improve authorisation rates.
How It Works
Set Transaction Context
Payment Provider contract
A unique ID to track each transaction
Successful
A unique ID to track each transaction
Bad Request
Unauthorized
Forbidden
Not Found
Internal Server Error
POST /oidc/paypal-ecom/transactions/risk/context HTTP/1.1
Host: emea.gsc.verifone.cloud
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: */*
Accept: */*
Content-Length: 64
{
"paymentProviderContract": "text",
"trackingId": "text",
"data": {}
}{
"trackingId": "text"
}Using the paypalFraudId Header
The paypalFraudId header is accepted on the following endpoints:
POST /transactions— Create TransactionPOST /transactions/{id}/authorize— Authorize Transaction
Pass the GUID value returned from the risk context response as paypalFraudId in those requests.
Always set risk context before initiating or authorising transactions in checkout flows. Including fraud signals improves PayPal's ability to approve legitimate transactions.
Was this helpful?
