# 收据和已付账单 自动发送付款或退款收据 每个收据都包含一个供在浏览器查看的链接,以及一个唯一的[收据编号](https://docs.stripe.com/api.md#charge_object-receipt_number),可用来查找支付信息。 您还可以访问链接,在浏览器中查看收据(通过 *PaymentIntent* (The Payment Intents API tracks the lifecycle of a customer checkout flow and triggers additional authentication steps when required by regulatory mandates, custom Radar fraud rules, or redirect-based payment methods) 的相关 [Charge](https://docs.stripe.com/api/charges/object.md#charge_object-receipt_url) 对象中 API)。您访问该链接时,收据上始终会显示该笔收款的最新状态。如果已被退款,则会在收据中准确反映退款。Stripe 托管的收据旨在通过网页浏览器查看。您无法直接下载它们。 作为一项安全措施,收据链接将在 30 天后过期。过期后的收据链接要求客户提供原始电子邮件地址,以便将收据重新发送到该地址。 ## 自动发送收据 您可以通过以下方式启用自动收据: - [Payment Link](https://docs.stripe.com/payment-links/post-payment.md#send-email-receipts) - [Checkout Sessions API](https://docs.stripe.com/api/checkout/sessions.md) - [Stripe 托管页面](https://docs.stripe.com/payments/checkout/receipts.md?payment-ui=stripe-hosted#automatically-send-receipts) - [嵌入式表单](https://docs.stripe.com/payments/checkout/receipts.md?payment-ui=embedded-form#automatically-send-receipts-embedded-form) - [Checkout 组件](https://docs.stripe.com/payments/advanced/receipts.md?payment-ui=embedded-components) - [高级集成](https://docs.stripe.com/payments/advanced/receipts.md#automatically-send-receipts) ## 手动发送收据 要在[管理平台](https://dashboard.stripe.com/payments)中发送收据,请在付款详情页面的**收据记录**部分点击**发送收据**。也可以将鼠标悬停在客户页面的**付款**部分的某笔付款上,然后点击**发送收据**图标。要重新发送电子邮件回执,请输入不同的电子邮件地址,或指定地址列表(用逗号分隔),以便将其发送给多个收件人。在支付页面上可以看到最近 10 个收据的记录。 要让客户通过您的应用直接访问收据,请使用 [`receipt_url`](https://docs.stripe.com/api/charges/object.md#charge_object-receipt_url)。 ## 自定义收据 了解如何通过以下方式自定义收据: - [Payment Link](https://docs.stripe.com/payment-links/post-payment.md#send-email-receipts) - [Checkout Sessions API](https://docs.stripe.com/payments/checkout/receipts.md#customizing-receipts) - [Stripe 托管页面](https://docs.stripe.com/payments/checkout/receipts.md?payment-ui=stripe-hosted#customizing-receipts) - [嵌入式表单](https://docs.stripe.com/payments/checkout/receipts.md?payment-ui=embedded-form#customizing-receipts-embedded-form) - [Checkout 组件](https://docs.stripe.com/payments/advanced/receipts.md?payment-ui=embedded-components) - [高级集成](https://docs.stripe.com/payments/advanced/receipts.md#automatically-send-receipts) ## 退款收据 退回一笔付款后,Stripe 会自动向原始收款中提供的相同邮件地址发送一张收据。也可以用管理平台手动发送退款收据的副本。要启用自动退款收据,请在[客户邮件设置](https://dashboard.stripe.com/settings/emails)中打开**退款**。 墨西哥的商家也可以从管理平台下载退款收据。这些收据包含有关退款的额外信息,如退款状态和退款类型。 ## 账单和订阅付款收据 Stripe 会在客户支付*账单* (Invoices are statements of amounts owed by a customer. They track the status of payments from draft through paid or otherwise finalized. Subscriptions automatically generate invoices, or you can manually create a one-off invoice)或完成*订阅* (A Subscription represents the product details associated with the plan that your customer subscribes to. Allows you to charge the customer on a recurring basis)付款后创建收据。订阅和账单付款的收据分若干项,包括行项目、折扣以及税额。付款后,[托管账单页面](https://docs.stripe.com/invoicing/hosted-invoice-page.md)会包含一个指向收据的链接。客户可下载该收据,留作记录。 ## 测试收据 使用您的[测试 API 密钥](https://docs.stripe.com/keys.md#test-live-modes)创建的测试支付不会自动发送收据,除非关联的电子邮件地址属于您本人,或属于其他拥有已验证邮箱且有权访问测试环境的用户。对于关联其他电子邮件地址的测试支付,请使用[管理平台](https://dashboard.stripe.com/test/payments)查看或手动发送收据。 ## Stripe Connect 收据 收据设置取决于收款和账户类型: - [定向收款](https://docs.stripe.com/connect/destination-charges.md)和[独立收款和转账](https://docs.stripe.com/connect/separate-charges-and-transfers.md):收据使用平台账户的**客户电子邮件地址**、**品牌**以及**公开详情**设置。 - [直接收款](https://docs.stripe.com/connect/direct-charges.md):收据使用 Connect 子账户的**客户电子邮件地址**、**品牌**以及**公开详情**设置。 平台账户可通过在创建收款请求时传递 `receipt_email` 来发送 Connect 子账户的收据。 对于使用 Stripe 管理平台的 Connect 子账户(包括 Standard Connect 子账户),可以在[品牌](https://dashboard.stripe.com/settings/branding)下配置收据设置。对于不使用管理平台的 Connect 子账户(包括 Express 和 Custom Connect 子账户),平台通过 [settings.branding](https://docs.stripe.com/api/accounts/update.md#update_account-settings-branding) 配置收据设置。 ## See also - [给客户发送电子邮件](https://docs.stripe.com/invoicing/send-email.md) - [自动给客户发送电子邮件](https://docs.stripe.com/billing/revenue-recovery/customer-emails.md)