调至内容部分
创建账户
或
登录
Stripe 文档徽标
/
询问人工智能
创建账户
登录
开始
付款
销售收入
平台和交易市场
资金管理
开发人员资源
概览
开始集成
资金与财政
Treasury
Capital
支付管理
发卡
    概览
    Issuing 工作原理
    全球可用
    管理欺诈
    银行卡
    选择银行卡的类型
    虚拟卡
    实物卡
    管理银行卡
    数字钱包
    换卡
    发卡计划
    项目管理
    仅限处理商的 Issuing
    定制您的发卡计划
    向银行卡计划添加资金
    Credit Consumer Issuing
    控制
    限额控制
    高级欺诈工具
    3DS
    欺诈挑战
    实时授权
    PIN 管理
    Issuing Elements
    令牌管理
    筹资
    余额
    后期投资您的 Stripe 集成
    通过动态储备金 (Dynamic Reserves) 进行后融资式集成
    购买记录
    授权
    交易
    争议
    测试
    商家类别
    ATM 的使用
    丰富的商家数据
    用 Connect 发卡
    设置 Issuing 和 Connect 集成
    更新服务条款的接受流程
    Connect 充值
    Connect 子账户,持卡人和银行卡
    不活动 Connect 子账户的停用
    嵌入银行卡管理 UI
    贷记
    概览
    设置 Connect 子账户
    管理信用条款
    报告其他信贷决策并管理 AAN
    报告信贷决策所需的监管数据
    管理账户义务
    测试贷记集成
    额外信息
    选择持卡人类型
    Issuing 和 Treasury 客户支持
    Issuing 监视列表
    营销指南(欧洲/英国)
    产品和营销合规指南(美国)
Global Payouts
管理资金
首页资金管理Issuing cards

Testing Issuing

Learn how to test your integration and simulate purchases.

Testing payments

Learn more about testing your Stripe integration.

You can issue cards and simulate purchases using your own Stripe integration in a sandbox environment. This allows you to test your integration before you go live without having to make real purchases. You can only use these cards for testing within your Stripe account and not for external purchases.

注意

When testing your authorization endpoint, make sure that you have set the test endpoint in your Issuing settings. You can view test data by switching into your sandbox environment.

Fund your test Issuing balance

Before you create test transactions, you must add test funds to the Issuing balance on your account. These aren’t real funds, and you can only use them for simulating test purchases.

Issuing users in the US

Issuing users in the US use “pull” funding, and use Top-ups to fund their Issuing balance. You can create test top-ups in the Dashboard, or with the Top-ups API. Learn more about funding Issuing balances for US users.

Issuing users in the UK and euro area

To top up their balance, Issuing users in the UK and Europe “push” funds using Funding Instructions. You can do this in your sandbox environment, which you access from the Dashboard, or with the Funding Instructions API. Learn more about funding Issuing balances for UK and euro area users.

You can simulate a card purchase by specifying authorization details in the Dashboard.

Create a card
Dashboard

Use the API or the Dashboard to create a test cardholder and card. Visit Create virtual cards or Create physical cards for Dashboard-specific instructions.

Create a test purchase
Dashboard

Navigate to the Issuing Cards page in your sandbox environment, find your newly-created card, then click Create test purchase.

Issuing card details menu with 'Create test purchase' option

You can select to create either an Authorization or Transaction by force capture.

Create test purchase sidebar form

Depending on your selection, you can provide a number of properties, such as amount, business data, and so on.

Click Submit to create the purchase. If you selected authorization and have configured your synchronous webhook, you can use it to approve or decline the authorization. The browser redirects to the page for the newly-created authorization.

Create a capture
Dashboard

To create a test capture with an authorization in the Dashboard, switch to your sandbox environment and complete the following steps:

  1. Navigate to the Authorizations page under Issued Cards.
  2. Click the authorization you want to capture, then click Capture.
    Issuing authorization details

You can capture an authorization for an amount that’s lesser, greater, or equivalent to the authorized total. You can also capture multiple times regardless of the authorization’s current state.

Capture Issuing authorization form

Enter the amount you want to capture, then click Submit to create the capture. The browser redirects you to the Transactions page and selects the newly created transaction.

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