You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

关于Authorize.Net沙箱测试收款及商户客户余额查询的技术问询

Hey there, I totally get the confusion when starting out with Authorize.Net— their sandbox can feel a bit opaque at first! Let's walk through your two questions step by step:

1. Testing Credit Card Payments in the Sandbox & Getting Test Card Numbers

First off, you don't need real credit cards for sandbox testing— Authorize.Net provides official, pre-approved test card numbers that let you simulate every type of transaction (success, decline, etc.) without any real money changing hands. Here's what you need to know:

  • Where to get test card numbers: These are built right into the sandbox ecosystem. Some go-to ones include:
    • Visa: 4111111111111111 (this is the most commonly used test card for successful transactions)
    • Mastercard: 5555555555554444
    • American Express: 378282246310005
  • How to use them: When submitting a test transaction via the API or sandbox merchant interface, plug in one of these numbers. For expiration date, just pick any future date (like 12/30), and for CVV, enter any 3-digit number (for Visa/Mastercard) or 4-digit number (for Amex).
  • Processing the payment: Use your sandbox credentials (Login ID and Transaction Key) to call the createTransactionRequest API endpoint (or use the sandbox merchant interface's manual payment form). The sandbox will process the transaction as if it were real, but no actual charges will hit the test card.
2. Checking Merchant & Customer Balances

This one depends on what you're referring to, so let's split it up:

  • Merchant balance (sandbox): The sandbox simulates your merchant account balance. You can view this by logging into your Authorize.Net Sandbox Merchant Interface. Once logged in, head to the Reports section, then look for Transaction Summary or Account Balance (the exact wording might vary slightly). This will show you simulated deposits, pending transactions, and total balance based on your test transactions.
  • Customer balance: Important note— Authorize.Net is a payment gateway, not a wallet or banking system. It doesn't store or track customer credit card balances. If you're testing a scenario where a customer has a balance (like store credit), that's something you'll need to track in your own application's database. For credit card transactions, the sandbox doesn't validate real card balances— any test card you use will work regardless of "balance" (you can even simulate declined transactions using specific test cards designed for that purpose, like 4000000000000002 which triggers a decline).

内容的提问来源于stack exchange,提问作者fat_potato

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.05.21 07:41:40