SCA exemptions and soft declines
Request SCA exemptions inside 3D Secure or during authorization, and retry soft-declined payments with the soft decline loop.
Strong customer authentication (SCA) applies to card payments where the issuer and the merchant are both in the European Economic Area, the United Kingdom, Gibraltar, or Guernsey. You can request an exemption inside 3D Secure, where the issuer decides during authentication, or in the authorization itself, where 3D Secure doesn't run unless the issuer requests it via a soft decline.
Exemption types
Both exemption paths accept the same exemption types.
| Type | Description |
|---|---|
low_value | Low-value payments eligible under SCA thresholds. |
transaction_risk_analysis | Payments rated as low risk by the acquirer's transaction risk analysis. |
secure_corporate_process | Payments made through a dedicated corporate payment process, such as a lodged or virtual corporate card. |
The issuer makes the final decision on every exemption. It can decline the payment or require authentication instead.
Exempt inside 3D Secure
To request an exemption during 3D Secure, set
authentication_options.three_ds.flow_indicator.type to frictionless and add
frictionless.sca_exemption_type. Pay.com runs 3D Secure and sends the
exemption with the authentication request. The issuer can still require a
challenge, so handle requires_authentication when it returns. See
Create a charge with 3DS.
{
"authentication_options": {
"type": "three_ds",
"three_ds": {
"flow_indicator": {
"type": "frictionless",
"frictionless": {
"sca_exemption_type": "low_value"
}
}
}
}
}Exempt in the authorization
To send the exemption with the authorization instead of inside 3D Secure, set
card.request_sca_exemption.sca_exemption_type. Whether Pay.com sends the
authorization first or runs 3D Secure first depends on SCA scope, your rules,
and whether exemption handling is enabled for your processor.
| Payment condition | Processor exemption handling | What Pay.com does |
|---|---|---|
Nothing requires 3D Secure (outside SCA scope and no rule or request_threed_secure asks for it) | Any | Skips 3D Secure and sends the authorization with the exemption. |
SCA applies, and no rule or request_threed_secure requires 3D Secure | Enabled | Sends the authorization with the exemption first. If the issuer soft-declines, the soft decline loop retries with 3D Secure. |
SCA applies, and no rule or request_threed_secure requires 3D Secure | Not enabled | Runs 3D Secure before authorization. |
A rule requires 3D Secure, or request_threed_secure is automatic or challenge | Any | Runs 3D Secure before authorization. |
Contact your account manager to confirm whether exemption handling is enabled for your processor.
{
"card": {
"request_sca_exemption": {
"sca_exemption_type": "transaction_risk_analysis"
}
}
}Soft decline loop
A soft decline is a decline requesting strong customer authentication, such as
authentication_required. When Pay.com sends a payment with an SCA exemption
and no 3D Secure, the soft decline loop retries that same charge with 3D Secure
so the customer can authenticate and complete the payment. The initial declined
attempt is recorded in retry_attempts.
When the loop runs
The soft decline loop runs when all of these conditions are met:
- Pay.com sent the payment with an exemption and without 3D Secure.
- The issuer returns a soft decline. By default, your processor's soft decline codes apply. With
soft_decline_loop_decline_codes, your custom list applies instead. - The payment didn't already include a 3D Secure result.
- The payment isn't Apple Pay, Google Pay, mail order or telephone order (
moto), or a subsequent merchant-initiated payment without a 3RI indicator. - The loop is enabled on your account, and
soft_decline_loopisn'tfalse.
Because the retry runs 3D Secure, pass the customer's browser details in
authentication_context. If the issuer requires a challenge, the charge
returns requires_authentication. See
Create a charge with 3DS to display the
challenge. Pay.com.js and the mobile SDKs display it automatically.
Soft decline loop options
Configure the soft decline loop inside
payment_method_options.card.request_sca_exemption, alongside
sca_exemption_type.
| Field | Type | Description |
|---|---|---|
soft_decline_loop | boolean | Defaults to true. Set to false to disable the loop for this payment. |
soft_decline_loop_decline_codes | array of strings | Decline codes that start the loop, such as authentication_required. When omitted, your processor's soft decline codes apply. |
soft_decline_loop_positioning | string | Controls when the loop runs if the payment has fallback routes: at_nearest (default) or after_fallbacks. |
{
"card": {
"request_sca_exemption": {
"sca_exemption_type": "transaction_risk_analysis",
"soft_decline_loop": true,
"soft_decline_loop_decline_codes": ["authentication_required"],
"soft_decline_loop_positioning": "after_fallbacks"
}
}
}Loop positioning with fallback routes
When your account routes declined payments to fallback
processors, soft_decline_loop_positioning sets when the soft decline loop
retries with 3D Secure, relative to the fallback attempts.
- Exempted authorization soft-declined
- at_nearest (default), Falls back first only when the next fallback lists the code
- Fallback approves, Completes without 3D Secure
- Fallbacks stop on a soft decline
- Retry the attempt where they stopped with 3D Secure
- Fallbacks stop on another decline, The loop does not run
- after_fallbacks, Falls back first
- Fallback approves, Completes without 3D Secure
- Every fallback declines
- Retry the first soft-declined attempt with 3D Secure
- No route lists the code, With advanced fallback routing only
- Retry that attempt with 3D Secure right away
| Value | When the loop retries with 3D Secure |
|---|---|
at_nearest (default) | When the fallbacks stop, on the attempt where they stopped. A soft decline whose code is in the next fallback's list falls back first, so the loop retries only when the last attempt is also a soft decline. |
after_fallbacks | After every fallback declines, on the first soft-declined attempt. Without advanced fallback routing, a soft-declined attempt falls back even when its code isn't in the fallback's list. With advanced fallback routing, it falls back only when a route lists its code, and otherwise the loop retries it with 3D Secure right away. |
Use after_fallbacks when you want to try fallback routes that might approve
without authentication before prompting the customer for a challenge.
Retry a soft decline manually
When the loop doesn't run, for example because the payment wasn't sent with an
exemption, a soft decline fails the charge with a decline code such as
authentication_required. Create a new charge with browser details in
authentication_context and request_threed_secure set to challenge. See
Request 3DS.
Next steps
- Request 3DS: Choose when 3D Secure runs and which ECI values you accept.
- Create a charge with 3DS: Display a challenge and confirm the charge.
- Declines: Browse decline codes and recommended actions.
- Routing: Configure primary and fallback processor routes.