# 拒付

了解付款被拒绝及如何降低拒付率的更多信息。

> #### 跟踪拒付率
> 
> 不断跟踪您的拒付率，以识别潜在的欺诈或集成问题。为了更清楚地了解您的授权率，请分析独特的拒付，并从您的分析中排除失败的重试。

您需要按不同方式处理各类失败的付款。对于每笔失败的付款，您都可以使用[管理平台](https://dashboard.stripe.com/payments) 或 API 来查看付款详情。使用 API 时，查看 `Charge` 对象的[结果](https://docs.stripe.com/api/charges/object.md#charge_object-outcome)。此属性包含付款失败类型，并提供有关其原因的信息。

支付可能会因各种原因而失败，其中一些原因有助于防止欺诈交易。Stripe 致力于降低所有支持的支付方式的拒绝率，通过与发卡行和卡组织合作来提高接受率，这通常不会影响您的集成。

付款失败的可能原因有三种：

- [发卡行拒绝交易](https://docs.stripe.com/declines.md#issuer-declines)
- [已拦截的支付](https://docs.stripe.com/declines.md#blocked-payments)
- [无效的 API 调用](https://docs.stripe.com/declines.md#invalid-api-calls)

## 发卡行拒绝

当您客户的发卡行或付款提供商收到扣款请求时，他们的自动化系统和模型将决定是否批准该交易。这些工具会综合分析多种信号指标，例如消费习惯、账户余额和卡数据（如到期日、地址信息和银行卡安全码 (CVC)）。

在处理非银行卡支付方式的拒付时，Stripe 的处理方式与银行卡拒付类似。Stripe 会给您发送一个响应代码，其中包含有关拒付的信息，例如，是否是因为资金不足、卡片丢失或被盗还是其他原因。

如果发卡行或支付服务商拒绝了某笔支付，Stripe 会通过 [Stripe 拒绝代码](https://docs.stripe.com/declines/codes.md) 与您分享其收到的拒绝信息。此信息可在管理平台中以及通过 API 获取。

当发卡行提供具体解释（例如卡号不正确或资金不足）时，这些解释将作为[卡组织拒绝交易代码](https://docs.stripe.com/declines/network-codes.md)返回给 Stripe。

## 付款被阻止

*Stripe Radar* (Stripe Radar helps detect and block fraud for any type of business using machine learning that trains on data across millions of global companies. It’s built into Stripe and requires no additional setup to get started) 阻止高风险支付，包括违反自定义规则或高风险得分的支付。这款自动化欺诈预防产品会对每笔付款进行评估，无需您采取任何操作。

Stripe 阻止支付时，不会获得发卡机构的授权，这种预防措施有助于防止可能导致争议的潜在欺诈性支付。

对于某些类型的银行卡，客户可能会在他们的对账单上看到发卡行已验证过的付款金额。但是，Stripe 没有扣取这笔费用，也没有提取资金。发卡行通常会在几天内从客户的对账单中删除此授权。

如果您配置的规则拦截了一笔您认为合法的支付，您可以在管理平台中找到该支付并点击 **添加到允许列表** 来解除拦截。此操作不会重试该支付。相反，它会覆盖您的所有其他规则，使其不会拦截与该列表属性匹配的未来支付尝试。

> 在付款详情页面上看不到**添加到允许列表**按钮？[联系 Stripe](https://support.stripe.com/email)，将该功能添加到您的 Radar 账户。

使用 API 时，被阻止的付款的 `outcome` 会反映付款失败的类型及原因，以及评定的风险等级。

```json
...
"outcome": {
  "network_decline_code": null,
  "network_advice_code": null,
  "network_status": "not_sent_to_network",
  "reason": "highest_risk_level",
  "advice_code": "do_not_try_again",
  "risk_level": "highest",
  "seller_message": "Stripe blocked this charge as too risky.",
  "type": "blocked"
},
...
```

对于采用 [IC+ 定价](https://support.stripe.com/questions/understanding-blended-interchange-pricing) 的用户，Adaptive Acceptance 会拦截某些支付，以帮助您避免不必要的卡组织费用。例如，Adaptive Acceptance 可帮助您避免过多重试产生的罚金。 Adaptive Acceptance 还可以通过拦截获授权可能性较低的支付来帮助您避免卡组织费用。

```json
...
"outcome": {
  "network_decline_code": null,
  "network_advice_code": null,
  "network_status": "not_sent_to_network",
  "reason": "low_probability_of_authorization",
  "advice_code": "do_not_try_again",
  "risk_level": "normal",
  "seller_message": "Stripe blocked this payment as it is unlikely to be authorized.",
  "type": "blocked"
},
...
```

## 无效的 API 调用

在 API 中，您可能会看到无效的 API 调用是这样的：

```curl
curl https://api.stripe.com/v1/payment_intents \
  -u "<<YOUR_SECRET_KEY>>:" \
  -d amount=2000 \
  -d currency=usd \
  -d payment_method=pm_card_chargeDeclinedIncorrectCvc \
  -d confirm=true
```

无效的 API 调用产生的错误响应可能看起来是这样的：

```json
{
  "error": {
    "code": "incorrect_cvc",
    "doc_url": "https://docs.stripe.com/error-codes#incorrect-cvc",
    "message": "Your card's security code is incorrect.",
    "param": "cvc",
    "type": "card_error"
  }
}
```

被拒绝的支付结果包括支付失败的类型和原因，这些信息基于卡组织的拒绝代码。该原因可能包含卡组织响应代码以外的信息，例如，如果 Radar 规则评估拦截了该笔收款。

```json
...
"outcome": {
  "network_decline_code": "54",
  "network_advice_code": "03",
  "network_status": "declined_by_network",
  "reason": "expired_card",
  "advice_code": "confirm_card_data",
  "risk_level": "normal",
  "seller_message": "The bank returned the decline code `expired_card`.",
  "type": "issuer_declined"
},
...
```

在您开发您的 Stripe 集成的过程中，应该通过持续[测试](https://docs.stripe.com/testing.md)找出那些可能引发无效的 API 调用的漏洞。无效的 API 调用通常不会使某笔付款出现在您的管理平台上。但少数情况下，您可能会看到付款。

```json
...
"outcome": {
  "network_decline_code": null,
  "network_advice_code": null,
  "network_status": "not_sent_to_network",
  "type": "invalid"
},
...
```

## See also

- [银行卡拒付](https://docs.stripe.com/declines/card.md)
- [测试拒付交易](https://docs.stripe.com/testing.md#declined-payments)
- [退款和取消付款](https://docs.stripe.com/refunds.md)
