调至内容部分
创建账户
或
登录
Stripe 文档徽标
/
询问人工智能
创建账户
登录
开始
付款
销售收入
平台和交易市场
资金管理
开发人员资源
概览
Billing
概览关于 Billing API
订阅
    概览
    订阅的运作机制
    开始
    快速开始
    规划集成
    构建集成
    用例
    关于订阅
    启用开单模式
    订阅事件定义
    资格
    订阅账单
    订阅计划
    经常性定价模型
    强客户认证 (SCA)
    设置订阅
    配置收取方法
    嵌入价格表
    设置数量
    设置计费周期
    管理订阅
    将订阅迁移到 Stripe
    订阅多个项目
    回溯订阅
    设置试用期
    处理延期付款的订阅
    使用优惠券
    修改订阅
    管理订阅支付方式
      按 ACH 直接借记额收取
      Amazon Pay
      英国的 BACS 直接借记
      银行转账
      澳大利亚的 BECS 直接借记
      Cash App Pay
      PayPal
      Revolut Pay
      韩国卡
      Kakao Pay
      Naver Pay
      加拿大预授权借记
      欧盟的 SEPA 直接借记
      使用 SEPA 直接借记的 iDEAL
      使用 SEPA 直接借记的 Bancontact
    分析
开账单
基于用量的计费
报价
客户管理
用其他产品计费
收入恢复
自动化
测试您的集成
税务
概览
使用 Stripe Tax
管理合规
报告
概览
选择报告
配置报告
Reports API
多账户报告
收入确认
数据
概览模式
自定义报告
Data Pipeline
数据管理
首页销售收入SubscriptionsManage subscription payment methods

Set up a subscription with bank transfers

Learn how to create and charge for a subscription with bank transfers.

Use this guide to set up a subscription using bank transfers as a payment method.

Create a product and price
Dashboard
Server-side

Products and Prices are core resources for Subscriptions. Create a product and a recurring price. Save the price ID—you’ll need it later in this guide.

Create or retrieve a customer
Server-side

To start, create a customer with a valid email address, if one doesn’t already exist. The valid email address ensures that the customer can receive invoices you send to them. Funds from bank transfers are held in the customer’s cash balance, so you have to associate a Customer object with each bank transfer subscription.

Command Line
cURL
Stripe CLI
Ruby
Python
PHP
Java
Node
Go
.NET
No results
curl https://api.stripe.com/v1/customers \ -u "
sk_test_BQokikJOvBiI2HlWgH4olfQ2
:"
\ -d name="Jenny Rosen" \ --data-urlencode email="jenny.rosen@example.com"

Create the subscription
Server-side

Create the subscription using the customer ID and price ID from the previous steps.

  • Set collection_method to send_invoice.
  • Set days_until_due to configure how many days the customer has to pay the invoice.
Command Line
cURL
Stripe CLI
Ruby
Python
PHP
Java
Node
Go
.NET
No results
curl https://api.stripe.com/v1/subscriptions \ -u "
sk_test_BQokikJOvBiI2HlWgH4olfQ2
:"
\ -d customer={{CUSTOMER_ID}} \ -d "items[0][price]"={{PRICE_ID}} \ -d collection_method=send_invoice \ -d days_until_due=30 \ -d "payment_settings[payment_method_types][0]"=customer_balance

An invoice is sent to the customer when the Subscription is due. The invoice is marked as paid if the customer has enough funds in their cash balance. Otherwise, it contains the necessary information needed for the customer to push funds from their bank account. This invoice also has a link to the Hosted Invoice Page. Subsequent invoices use the price you created in the first step.

Learn more about bank transfer invoices.

可选Create a subscription schedule
Server-side

Test your integration

Use the Stripe Dashboard or CLI to simulate an inbound transfer of funds.

As soon as you receive a fund, Stripe performs automatic or manual reconciliation of the invoice.

此页面的内容有帮助吗?
是否
  • 需要帮助?联系支持。
  • 加入我们的早期使用计划。
  • 查看我们的更改日志。
  • 有问题?联系销售。
  • LLM? Read llms.txt.
  • Powered by Markdoc