tw-payment-integration

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese

Taiwan Payment Integration

台湾地区支付集成

Framework

框架

IRON LAW: Support At Least 3 Payment Methods in Taiwan

Taiwan consumers expect choice. Credit card alone misses ~40% of potential
buyers. The minimum viable payment mix for Taiwan e-commerce:
1. Credit card (信用卡)
2. ATM/bank transfer (ATM 虛擬帳號)
3. Convenience store payment (超商代碼/超商取貨付款)

Adding LINE Pay and Apple Pay captures another 10-15%.
IRON LAW: Support At Least 3 Payment Methods in Taiwan

台湾消费者期望有多种选择。仅支持信用卡会错失约40%的潜在买家。台湾电商的最低可行支付组合:
1. Credit card (信用卡)
2. ATM/bank transfer (ATM 虛擬帳號)
3. Convenience store payment (超商代碼/超商取貨付款)

添加LINE Pay和Apple Pay可覆盖额外10-15%的用户。

Taiwan Payment Landscape

台湾地区支付格局

MethodMarket ShareUser ProfileSettlement Time
Credit/Debit card~45%All ages, higher spendingT+1 to T+7
ATM virtual account~15%Price-sensitive, no credit cardInstant to T+1
Convenience store (超商代碼)~10%Students, cash-preferredT+1 to T+3
LINE Pay~12%LINE users (95% of Taiwan)T+1 to T+7
Apple Pay / Google Pay~5%Mobile-first usersT+1 to T+7
超商取貨付款 (COD at store)~8%Low trust, want to see productUpon pickup + T+3
JKoPay / 街口~3%Younger demographicT+1
支付方式市场份额用户画像结算周期
信用卡/借记卡~45%全年龄段,消费能力较高T+1至T+7
ATM虚拟账户~15%对价格敏感,无信用卡即时至T+1
便利店(超商代碼)~10%学生群体,偏好现金支付T+1至T+3
LINE Pay~12%LINE用户(覆盖台湾95%人群)T+1至T+7
Apple Pay / Google Pay~5%移动优先用户T+1至T+7
超商取貨付款 (COD at store)~8%信任度低,希望先看到商品取货后+T+3
JKoPay / 街口~3%年轻群体T+1

Payment Service Providers (PSP)

支付服务提供商(PSP)

PSPStrengthsPricingBest For
綠界 (ECPay)Most comprehensive (credit card, ATM, CVS, 超取), largest market share2.75% credit card, NT$15/ATM txnGeneral e-commerce, startups
藍新 (NewebPay)Good API design, modern dashboard2.5-2.8% credit cardSaaS, subscription businesses
TapPayMobile-first, Apple Pay/Google Pay/LINE Pay integration2.5-2.8% credit cardMobile apps, in-app purchases
PayNowEasy setup, no monthly fee2.75% credit cardLow-volume, new businesses
StripeInternational, excellent API3.4% + NT$10 per txnCross-border, international focus
PSP优势定价适用场景
綠界 (ECPay)覆盖最全面(信用卡、ATM、便利店、超取),市场份额最高信用卡2.75%,ATM交易每笔NT$15通用电商、初创企业
藍新 (NewebPay)API设计优秀,控制台界面现代化信用卡2.5-2.8%SaaS、订阅类业务
TapPay移动优先,支持Apple Pay/Google Pay/LINE Pay集成信用卡2.5-2.8%移动应用、应用内购买
PayNow搭建简单,无月费信用卡2.75%低交易量、新成立商家
Stripe国际化,API体验极佳每笔3.4% + NT$10跨境业务、国际化需求

Integration Flow (Standard)

标准集成流程

1. Customer clicks "Pay" on your site
2. Your server creates an order → sends to PSP API
3. PSP returns a payment page URL (or token for inline)
4. Customer completes payment on PSP-hosted page
5. PSP sends callback (webhook) to your server with result
6. Your server verifies the callback signature
7. Update order status → show confirmation to customer
1. 客户在您的网站点击“支付”
2. 您的服务器创建订单 → 发送至PSP API
3. PSP返回支付页面URL(或内嵌支付所需的token)
4. 客户在PSP托管页面完成支付
5. PSP向您的服务器发送回调(webhook)告知支付结果
6. 您的服务器验证回调签名
7. 更新订单状态 → 向客户展示支付确认信息

Key API Concepts

核心API概念

ConceptWhat It Is
MerchantIDYour account identifier with the PSP
HashKey / HashIVSecret keys for signature verification
TradeNoYour order ID (must be unique per transaction)
PaymentTypeCredit, ATM, CVS, WebATM, etc.
Callback URLWebhook endpoint PSP calls after payment
Return URLPage to redirect customer after payment
CheckMacValueHMAC signature to verify data integrity
概念含义
MerchantID您在PSP平台的账户标识
HashKey / HashIV用于签名验证的密钥
TradeNo您的订单ID(每笔交易必须唯一)
PaymentType支付类型:信用卡、ATM、便利店、WebATM等
Callback URLPSP支付完成后调用的Webhook端点
Return URL支付完成后跳转至的客户页面
CheckMacValue用于验证数据完整性的HMAC签名

Refund Handling

退款处理

MethodRefund CapabilityTiming
Credit cardFull or partial refund via API1-7 business days
ATMCannot auto-refund — must wire transfer backManual, 3-7 days
CVS paymentCannot auto-refund — must wire transfer backManual, 3-7 days
LINE PayFull refund via API1-3 business days
支付方式退款能力处理时效
信用卡支持通过API全额或部分退款1-7个工作日
ATM无法自动退款——需手动转账退回人工处理,3-7天
便利店支付无法自动退款——需手动转账退回人工处理,3-7天
LINE Pay支持通过API全额退款1-3个工作日

Security Requirements

安全要求

RequirementWhat to Do
SSL/TLSAll payment pages must be HTTPS
3D SecureEnable 3DS 2.0 for credit card fraud reduction
PCI DSSIf handling raw card data, need PCI compliance. Using PSP-hosted payment page avoids this.
TokenizationStore payment tokens, never raw card numbers
Webhook verificationAlways verify CheckMacValue signature before processing callbacks
IdempotencyHandle duplicate callbacks gracefully (PSP may retry)
要求实施要点
SSL/TLS所有支付页面必须采用HTTPS协议
3D Secure启用3DS 2.0以降低信用卡欺诈风险
PCI DSS若处理原始卡数据,需符合PCI合规要求。使用PSP托管支付页面可规避此要求
Tokenization存储支付令牌,绝不存储原始卡号
Webhook验证处理回调前务必验证CheckMacValue签名
幂等性优雅处理重复回调(PSP可能重试)

Output Format

输出格式

markdown
undefined
markdown
undefined

Payment Integration Plan: {Business}

支付集成方案: {Business}

Payment Method Selection

支付方式选择

MethodInclude?PSPRationale
Credit cardY/N{provider}{why}
ATMY/N......
CVSY/N......
LINE PayY/N......
支付方式是否接入PSP服务商理由
信用卡是/否{provider}{why}
ATM是/否......
便利店是/否......
LINE Pay是/否......

PSP Selection

PSP服务商选择

  • Provider: {name}
  • Pricing: {rate}
  • Rationale: {why this provider}
  • 提供商: {name}
  • 定价: {rate}
  • 理由: {why this provider}

Integration Plan

集成计划

PhaseTaskTimeline
1Apply for PSP merchant account1-2 weeks
2Develop payment flow (sandbox)1-2 weeks
3Implement webhook handler1 week
4Security review (SSL, signature verification)2-3 days
5Production testing with real transactions1 week
6Go-live1 day
阶段任务时间周期
1申请PSP商户账户1-2周
2开发支付流程(沙箱环境)1-2周
3实现Webhook处理器1周
4安全审核(SSL、签名验证)2-3天
5生产环境真实交易测试1周
6正式上线1天

Refund Process

退款流程

{How each payment method handles refunds}
undefined
{各支付方式的退款处理说明}
undefined

Gotchas

注意事项

  • PSP application takes time: Merchant account approval can take 1-3 weeks. Apply early. Credit card processing requires additional documentation (company registration, bank account proof).
  • ATM and CVS refunds are manual: Unlike credit cards, ATM and convenience store payments cannot be auto-refunded. You need the customer's bank account to wire money back. Build this into your CS process.
  • Webhook reliability: PSP callbacks can be delayed or duplicated. Build idempotent handlers and implement a reconciliation job that checks PSP records against your database daily.
  • Foreign credit cards: Not all Taiwan PSPs support foreign credit cards well. If you have international customers, test with non-Taiwan cards or use Stripe.
  • Recurring payments (subscription): 綠界 and 藍新 support recurring billing, but you need the customer's explicit consent and must handle card expiration/update flows.
  • PSP账户申请耗时: 商户账户审核可能需要1-3周,建议提前申请。信用卡收款需额外提交证明文件(公司注册资料、银行账户证明)。
  • ATM和便利店退款需人工操作: 与信用卡不同,ATM和便利店支付无法自动退款。您需要获取客户的银行账户信息进行转账退回,需将此流程纳入客户服务体系。
  • Webhook可靠性: PSP回调可能延迟或重复。需构建幂等处理器,并实现每日对账任务,核对PSP记录与您的数据库数据。
  • 境外信用卡支持: 并非所有台湾PSP都能良好支持境外信用卡。若服务国际客户,请测试非台湾地区卡片或使用Stripe。
  • ** recurring payments (订阅)**: 綠界和藍新支持 recurring billing,但需获得客户明确同意,并处理卡片过期/更新流程。

References

参考资料

  • For 綠界 API integration guide, see
    references/ecpay-api.md
  • For PCI DSS compliance checklist, see
    references/pci-checklist.md
  • 綠界API集成指南,请查看
    references/ecpay-api.md
  • PCI DSS合规检查表,请查看
    references/pci-checklist.md